Class UserApi
java.lang.Object
org.camunda.community.rest.client.api.UserApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-06-04T13:43:01.451833574Z[Etc/UTC]")
public class UserApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptions The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances.availableOperations(Map<String, String> additionalHeaders) Options The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances.Options The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances.availableUserOperations(String id, Map<String, String> additionalHeaders) Options The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances.voidcreateUser(UserDto userDto) Create Create a new user.voidcreateUser(UserDto userDto, Map<String, String> additionalHeaders) Create Create a new user.voiddeleteUser(String id) Delete Deletes a user by id.voiddeleteUser(String id, Map<String, String> additionalHeaders) Delete Deletes a user by id.getUserCount(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter) Get List Count Queries for the number of deployments that fulfill given parameters.getUserCount(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter, Map<String, String> additionalHeaders) Get List Count Queries for the number of deployments that fulfill given parameters.getUserProfile(String id) Get Profile Retrieves a user's profile.getUserProfile(String id, Map<String, String> additionalHeaders) Get Profile Retrieves a user's profile.getUsers(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter, String sortBy, String sortOrder, Integer firstResult, Integer maxResults) Get List Query for a list of users using a list of parameters.getUsers(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter, String sortBy, String sortOrder, Integer firstResult, Integer maxResults, Map<String, String> additionalHeaders) Get List Query for a list of users using a list of parameters.voidsetApiClient(ApiClient apiClient) voidunlockUser(String id) Unlock User Unlocks a user by id.voidunlockUser(String id, Map<String, String> additionalHeaders) Unlock User Unlocks a user by id.voidupdateCredentials(String id, UserCredentialsDto userCredentialsDto) Update Credentials Updates a user's credentials (password)voidupdateCredentials(String id, UserCredentialsDto userCredentialsDto, Map<String, String> additionalHeaders) Update Credentials Updates a user's credentials (password)voidupdateProfile(String id, UserProfileDto userProfileDto) Update User Profile Updates the profile information of an already existing user.voidupdateProfile(String id, UserProfileDto userProfileDto, Map<String, String> additionalHeaders) Update User Profile Updates the profile information of an already existing user.
-
Constructor Details
-
UserApi
public UserApi() -
UserApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
availableOperations
Options The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances. The `OPTIONS` request allows checking for the set of available operations that the currently authenticated user can perform on the /user resource. If the user can perform an operation or not may depend on various things, including the user's authorizations to interact with this resource and the internal configuration of the process engine. `OPTIONS /user` returns available interactions on the resource.- Returns:
- ResourceOptionsDto
- Throws:
ApiException- if fails to make API call
-
availableOperations
public ResourceOptionsDto availableOperations(Map<String, String> additionalHeaders) throws ApiExceptionOptions The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances. The `OPTIONS` request allows checking for the set of available operations that the currently authenticated user can perform on the /user resource. If the user can perform an operation or not may depend on various things, including the user's authorizations to interact with this resource and the internal configuration of the process engine. `OPTIONS /user` returns available interactions on the resource.- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- ResourceOptionsDto
- Throws:
ApiException- if fails to make API call
-
availableUserOperations
Options The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances. The `OPTIONS` request allows checking for the set of available operations that the currently authenticated user can perform on the /user resource. If the user can perform an operation or not may depend on various things, including the user's authorizations to interact with this resource and the internal configuration of the process engine. `OPTIONS /user/{id}` returns available interactions on a resource instance.- Parameters:
id- The id of the user to be deleted. (required)- Returns:
- ResourceOptionsDto
- Throws:
ApiException- if fails to make API call
-
availableUserOperations
public ResourceOptionsDto availableUserOperations(String id, Map<String, String> additionalHeaders) throws ApiExceptionOptions The `/user` resource supports two custom `OPTIONS` requests, one for the resource as such and one for individual user instances. The `OPTIONS` request allows checking for the set of available operations that the currently authenticated user can perform on the /user resource. If the user can perform an operation or not may depend on various things, including the user's authorizations to interact with this resource and the internal configuration of the process engine. `OPTIONS /user/{id}` returns available interactions on a resource instance.- Parameters:
id- The id of the user to be deleted. (required)additionalHeaders- additionalHeaders for this call- Returns:
- ResourceOptionsDto
- Throws:
ApiException- if fails to make API call
-
createUser
Create Create a new user.- Parameters:
userDto- (optional)- Throws:
ApiException- if fails to make API call
-
createUser
Create Create a new user.- Parameters:
userDto- (optional)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
deleteUser
Delete Deletes a user by id.- Parameters:
id- The id of the user to be deleted. (required)- Throws:
ApiException- if fails to make API call
-
deleteUser
Delete Deletes a user by id.- Parameters:
id- The id of the user to be deleted. (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getUserCount
public CountResultDto getUserCount(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter) throws ApiException Get List Count Queries for the number of deployments that fulfill given parameters. Takes the same parameters as the [Get Users](https://docs.camunda.org/manual/7.21/reference/rest/user/get-query/) method.- Parameters:
id- Filter by user id (optional)idIn- Filter by a comma-separated list of user ids. (optional)firstName- Filter by the first name of the user. Exact match. (optional)firstNameLike- Filter by the first name that the parameter is a substring of. (optional)lastName- Filter by the last name of the user. Exact match. (optional)lastNameLike- Filter by the last name that the parameter is a substring of. (optional)email- Filter by the email of the user. Exact match. (optional)emailLike- Filter by the email that the parameter is a substring of. (optional)memberOfGroup- Filter for users which are members of the given group. (optional)memberOfTenant- Filter for users which are members of the given tenant. (optional)potentialStarter- Only select Users that are potential starter for the given process definition. (optional)- Returns:
- CountResultDto
- Throws:
ApiException- if fails to make API call
-
getUserCount
public CountResultDto getUserCount(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter, Map<String, String> additionalHeaders) throws ApiExceptionGet List Count Queries for the number of deployments that fulfill given parameters. Takes the same parameters as the [Get Users](https://docs.camunda.org/manual/7.21/reference/rest/user/get-query/) method.- Parameters:
id- Filter by user id (optional)idIn- Filter by a comma-separated list of user ids. (optional)firstName- Filter by the first name of the user. Exact match. (optional)firstNameLike- Filter by the first name that the parameter is a substring of. (optional)lastName- Filter by the last name of the user. Exact match. (optional)lastNameLike- Filter by the last name that the parameter is a substring of. (optional)email- Filter by the email of the user. Exact match. (optional)emailLike- Filter by the email that the parameter is a substring of. (optional)memberOfGroup- Filter for users which are members of the given group. (optional)memberOfTenant- Filter for users which are members of the given tenant. (optional)potentialStarter- Only select Users that are potential starter for the given process definition. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- CountResultDto
- Throws:
ApiException- if fails to make API call
-
getUserProfile
Get Profile Retrieves a user's profile.- Parameters:
id- The id of the user to retrieve. (required)- Returns:
- UserProfileDto
- Throws:
ApiException- if fails to make API call
-
getUserProfile
public UserProfileDto getUserProfile(String id, Map<String, String> additionalHeaders) throws ApiExceptionGet Profile Retrieves a user's profile.- Parameters:
id- The id of the user to retrieve. (required)additionalHeaders- additionalHeaders for this call- Returns:
- UserProfileDto
- Throws:
ApiException- if fails to make API call
-
getUsers
public List<UserProfileDto> getUsers(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter, String sortBy, String sortOrder, Integer firstResult, Integer maxResults) throws ApiException Get List Query for a list of users using a list of parameters. The size of the result set can be retrieved by using the Get User Count method. [Get User Count](https://docs.camunda.org/manual/7.21/reference/rest/user/get-query-count/) method.- Parameters:
id- Filter by user id (optional)idIn- Filter by a comma-separated list of user ids. (optional)firstName- Filter by the first name of the user. Exact match. (optional)firstNameLike- Filter by the first name that the parameter is a substring of. (optional)lastName- Filter by the last name of the user. Exact match. (optional)lastNameLike- Filter by the last name that the parameter is a substring of. (optional)email- Filter by the email of the user. Exact match. (optional)emailLike- Filter by the email that the parameter is a substring of. (optional)memberOfGroup- Filter for users which are members of the given group. (optional)memberOfTenant- Filter for users which are members of the given tenant. (optional)potentialStarter- Only select Users that are potential starter for the given process definition. (optional)sortBy- Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. (optional)sortOrder- Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. (optional)firstResult- Pagination of results. Specifies the index of the first result to return. (optional)maxResults- Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional)- Returns:
- List<UserProfileDto>
- Throws:
ApiException- if fails to make API call
-
getUsers
public List<UserProfileDto> getUsers(String id, String idIn, String firstName, String firstNameLike, String lastName, String lastNameLike, String email, String emailLike, String memberOfGroup, String memberOfTenant, String potentialStarter, String sortBy, String sortOrder, Integer firstResult, Integer maxResults, Map<String, String> additionalHeaders) throws ApiExceptionGet List Query for a list of users using a list of parameters. The size of the result set can be retrieved by using the Get User Count method. [Get User Count](https://docs.camunda.org/manual/7.21/reference/rest/user/get-query-count/) method.- Parameters:
id- Filter by user id (optional)idIn- Filter by a comma-separated list of user ids. (optional)firstName- Filter by the first name of the user. Exact match. (optional)firstNameLike- Filter by the first name that the parameter is a substring of. (optional)lastName- Filter by the last name of the user. Exact match. (optional)lastNameLike- Filter by the last name that the parameter is a substring of. (optional)email- Filter by the email of the user. Exact match. (optional)emailLike- Filter by the email that the parameter is a substring of. (optional)memberOfGroup- Filter for users which are members of the given group. (optional)memberOfTenant- Filter for users which are members of the given tenant. (optional)potentialStarter- Only select Users that are potential starter for the given process definition. (optional)sortBy- Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. (optional)sortOrder- Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. (optional)firstResult- Pagination of results. Specifies the index of the first result to return. (optional)maxResults- Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- List<UserProfileDto>
- Throws:
ApiException- if fails to make API call
-
unlockUser
Unlock User Unlocks a user by id.- Parameters:
id- The id of the user to be unlocked. (required)- Throws:
ApiException- if fails to make API call
-
unlockUser
Unlock User Unlocks a user by id.- Parameters:
id- The id of the user to be unlocked. (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
updateCredentials
Update Credentials Updates a user's credentials (password)- Parameters:
id- The id of the user to be updated. (required)userCredentialsDto- (optional)- Throws:
ApiException- if fails to make API call
-
updateCredentials
public void updateCredentials(String id, UserCredentialsDto userCredentialsDto, Map<String, String> additionalHeaders) throws ApiExceptionUpdate Credentials Updates a user's credentials (password)- Parameters:
id- The id of the user to be updated. (required)userCredentialsDto- (optional)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
updateProfile
Update User Profile Updates the profile information of an already existing user.- Parameters:
id- The id of the user. (required)userProfileDto- (optional)- Throws:
ApiException- if fails to make API call
-
updateProfile
public void updateProfile(String id, UserProfileDto userProfileDto, Map<String, String> additionalHeaders) throws ApiExceptionUpdate User Profile Updates the profile information of an already existing user.- Parameters:
id- The id of the user. (required)userProfileDto- (optional)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-