Package org.bonitasoft.web.client.api
Interface UserApi
- All Superinterfaces:
ApiClient.Api
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.12.0")
public interface UserApi
extends ApiClient.Api
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA convenience class for generating query parameters for thesearchUsersmethod in a fluent style. -
Method Summary
Modifier and TypeMethodDescriptioncreateUser(UserCreateRequest body) Create the User Create the UserCreate the User Similar tocreateUserbut it also returns the http response headers .voiddeleteUserById(String id) Delete the User by ID Delete the single User for the given ID.Delete the User by ID Similar todeleteUserByIdbut it also returns the http response headers .getUserById(String id) Finds the User by ID Returns the single User for the given IDFinds the User by ID Similar togetUserByIdbut it also returns the http response headers .Finds Users Finds Users with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName`searchUsers(UserApi.SearchUsersQueryParams queryParams) Finds Users Finds Users with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUsersmethod, but with the query parameters collected into a single Map parameter.Finds Users Similar tosearchUsersbut it also returns the http response headers .searchUsersWithHttpInfo(UserApi.SearchUsersQueryParams queryParams) Finds Users Finds Users with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUsersthat receives the query parameters as a map, but this one also exposes the Http response headersvoidupdateUserById(String id, UserUpdateRequest userUpdateRequest) Update the User by ID Update the User for the given IDupdateUserByIdWithHttpInfo(String id, UserUpdateRequest userUpdateRequest) Update the User by ID Similar toupdateUserByIdbut it also returns the http response headers .
-
Method Details
-
createUser
Create the User Create the User- Parameters:
body- Partial User description (required)- Returns:
- User
-
createUserWithHttpInfo
Create the User Similar tocreateUserbut it also returns the http response headers . Create the User- Parameters:
body- Partial User description (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
deleteUserById
Delete the User by ID Delete the single User for the given ID. **Use this method with caution**: some artifacts like applications, process instances or users may present display problems in the Bonita Portal if the referenced user was deleted. Note that you can disable a user instead of deleting it. To do so, use the UPDATE method and set the attribute 'enabled' to false- Parameters:
id- ID of the User to delete (required)
-
deleteUserByIdWithHttpInfo
Delete the User by ID Similar todeleteUserByIdbut it also returns the http response headers . Delete the single User for the given ID. **Use this method with caution**: some artifacts like applications, process instances or users may present display problems in the Bonita Portal if the referenced user was deleted. Note that you can disable a user instead of deleting it. To do so, use the UPDATE method and set the attribute 'enabled' to false- Parameters:
id- ID of the User to delete (required)
-
getUserById
Finds the User by ID Returns the single User for the given ID- Parameters:
id- ID of the User to return (required)- Returns:
- User
-
getUserByIdWithHttpInfo
Finds the User by ID Similar togetUserByIdbut it also returns the http response headers . Returns the single User for the given ID- Parameters:
id- ID of the User to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchUsers
Finds Users Finds Users with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `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<User>
-
searchUsersWithHttpInfo
ApiResponse<List<User>> searchUsersWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s) Finds Users Similar tosearchUsersbut it also returns the http response headers . Finds Users with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `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.
-
searchUsers
Finds Users Finds Users with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUsersmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theUserApi.SearchUsersQueryParamsclass 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<User>
-
searchUsersWithHttpInfo
Finds Users Finds Users with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUsersthat 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<User>
-
updateUserById
Update the User by ID Update the User for the given ID- Parameters:
id- ID of the User to return (required)userUpdateRequest- Partial User description (required)
-
updateUserByIdWithHttpInfo
Update the User by ID Similar toupdateUserByIdbut it also returns the http response headers . Update the User for the given ID- Parameters:
id- ID of the User to return (required)userUpdateRequest- Partial User description (required)
-