Package org.bonitasoft.web.client.api
Interface RoleApi
-
- All Superinterfaces:
ApiClient.Api
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public interface RoleApi extends ApiClient.Api
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRoleApi.SearchRolesQueryParamsA convenience class for generating query parameters for thesearchRolesmethod in a fluent style.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RolecreateRole(RoleCreateRequest body)Create the Role Create the RoleApiResponse<Role>createRoleWithHttpInfo(RoleCreateRequest body)Create the Role Similar tocreateRolebut it also returns the http response headers .voiddeleteRoleById(String id)Delete the Role by ID Delete the single Role for the given IDApiResponse<Void>deleteRoleByIdWithHttpInfo(String id)Delete the Role by ID Similar todeleteRoleByIdbut it also returns the http response headers .RolegetRoleById(String id)Finds the Role by ID Returns the single Role for the given IDApiResponse<Role>getRoleByIdWithHttpInfo(String id)Finds the Role by ID Similar togetRoleByIdbut it also returns the http response headers .List<Role>searchRoles(Integer p, Integer c, List<String> f, String o, String s)Finds Roles Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName`List<Role>searchRoles(Map<String,Object> queryParams)Finds Roles Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName` Note, this is equivalent to the othersearchRolesmethod, but with the query parameters collected into a single Map parameter.ApiResponse<List<Role>>searchRolesWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)Finds Roles Similar tosearchRolesbut it also returns the http response headers .ApiResponse<List<Role>>searchRolesWithHttpInfo(Map<String,Object> queryParams)Finds Roles Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName` Note, this is equivalent to the othersearchRolesthat receives the query parameters as a map, but this one also exposes the Http response headersvoidupdateRoleById(String id, RoleUpdateRequest roleUpdateRequest)Update the Role by ID Update the Role for the given IDApiResponse<Void>updateRoleByIdWithHttpInfo(String id, RoleUpdateRequest roleUpdateRequest)Update the Role by ID Similar toupdateRoleByIdbut it also returns the http response headers .
-
-
-
Method Detail
-
createRole
Role createRole(RoleCreateRequest body)
Create the Role Create the Role- Parameters:
body- Partial Role description (required)- Returns:
- Role
-
createRoleWithHttpInfo
ApiResponse<Role> createRoleWithHttpInfo(RoleCreateRequest body)
Create the Role Similar tocreateRolebut it also returns the http response headers . Create the Role- Parameters:
body- Partial Role description (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
deleteRoleById
void deleteRoleById(String id)
Delete the Role by ID Delete the single Role for the given ID- Parameters:
id- ID of the Role to delete (required)
-
deleteRoleByIdWithHttpInfo
ApiResponse<Void> deleteRoleByIdWithHttpInfo(String id)
Delete the Role by ID Similar todeleteRoleByIdbut it also returns the http response headers . Delete the single Role for the given ID- Parameters:
id- ID of the Role to delete (required)
-
getRoleById
Role getRoleById(String id)
Finds the Role by ID Returns the single Role for the given ID- Parameters:
id- ID of the Role to return (required)- Returns:
- Role
-
getRoleByIdWithHttpInfo
ApiResponse<Role> getRoleByIdWithHttpInfo(String id)
Finds the Role by ID Similar togetRoleByIdbut it also returns the http response headers . Returns the single Role for the given ID- Parameters:
id- ID of the Role to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchRoles
List<Role> searchRoles(Integer p, Integer c, List<String> f, String o, String s)
Finds Roles Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- List<Role>
-
searchRolesWithHttpInfo
ApiResponse<List<Role>> searchRolesWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)
Finds Roles Similar tosearchRolesbut it also returns the http response headers . Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchRoles
List<Role> searchRoles(Map<String,Object> queryParams)
Finds Roles Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName` Note, this is equivalent to the othersearchRolesmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theRoleApi.SearchRolesQueryParamsclass that allows for building up this map in a fluent style.- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<Role>
-
searchRolesWithHttpInfo
ApiResponse<List<Role>> searchRolesWithHttpInfo(Map<String,Object> queryParams)
Finds Roles Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName` Note, this is equivalent to the othersearchRolesthat receives the query parameters as a map, but this one also exposes the Http response headers- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<Role>
-
updateRoleById
void updateRoleById(String id, RoleUpdateRequest roleUpdateRequest)
Update the Role by ID Update the Role for the given ID- Parameters:
id- ID of the Role to return (required)roleUpdateRequest- Partial Role description (required)
-
updateRoleByIdWithHttpInfo
ApiResponse<Void> updateRoleByIdWithHttpInfo(String id, RoleUpdateRequest roleUpdateRequest)
Update the Role by ID Similar toupdateRoleByIdbut it also returns the http response headers . Update the Role for the given ID- Parameters:
id- ID of the Role to return (required)roleUpdateRequest- Partial Role description (required)
-
-