Package org.bonitasoft.web.client.api
Interface RoleApi
- All Superinterfaces:
ApiClient.Api
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.12.0")
public interface RoleApi
extends ApiClient.Api
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA convenience class for generating query parameters for thesearchRolesmethod in a fluent style. -
Method Summary
Modifier and TypeMethodDescriptioncreateRole(RoleCreateRequest body) Create the Role Create the RoleCreate 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 IDDelete the Role by ID Similar todeleteRoleByIdbut it also returns the http response headers .getRoleById(String id) Finds the Role by ID Returns the single Role for the given IDFinds the Role by ID Similar togetRoleByIdbut it also returns the http response headers .Finds Roles Finds Roles with pagination params and filters - can order on `id`, `name` and `displayName` - can filter on `name` and `displayName`searchRoles(RoleApi.SearchRolesQueryParams 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.Finds Roles Similar tosearchRolesbut it also returns the http response headers .searchRolesWithHttpInfo(RoleApi.SearchRolesQueryParams 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 IDupdateRoleByIdWithHttpInfo(String id, RoleUpdateRequest roleUpdateRequest) Update the Role by ID Similar toupdateRoleByIdbut it also returns the http response headers .
-
Method Details
-
createRole
Create the Role Create the Role- Parameters:
body- Partial Role description (required)- Returns:
- Role
-
createRoleWithHttpInfo
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
Delete the Role by ID Delete the single Role for the given ID- Parameters:
id- ID of the Role to delete (required)
-
deleteRoleByIdWithHttpInfo
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
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
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
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
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
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
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
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)
-