Class RemotePersonServiceImpl
java.lang.Object
com.atlassian.confluence.rest.client.AbstractRemoteService<PersonService>
com.atlassian.confluence.rest.client.RemotePersonServiceImpl
- All Implemented Interfaces:
RemotePersonService
public class RemotePersonServiceImpl
extends AbstractRemoteService<PersonService>
implements RemotePersonService
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.confluence.rest.client.RemotePersonService
RemotePersonService.RemotePersonFinder, RemotePersonService.RemotePersonManyFetcher<T>, RemotePersonService.RemotePersonSearcher, RemotePersonService.RemotePersonSingleFetcher
-
Field Summary
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
Constructor Summary
ConstructorsConstructorDescriptionRemotePersonServiceImpl
(AuthenticatedWebResourceProvider provider, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionaddMembership
(String username, String groupName) changeMyPassword
(PasswordChangeDetails passwordChangeDetails) Change the password of the current user.changeUserPassword
(String username, String newPass) Change the password of the given user.create
(UserDetailsForCreation userDetailsForCreation) Create a new active userDisable the givenUser
identified by username.Enable the givenUser
identified by username.fetchActiveUsers
(PageRequest pageRequest) Fetch active users.getCurrentUserCompletionStage
(Expansion... expansions) removeMembership
(String username, String groupName) search()
update
(UserDetailsForUpdate userDetailsForUpdate) Update the current user with the supplied details (full name or email).update
(String username, UserDetailsForUpdate userDetailsForUpdate) Update the given user with the supplied details (full name or email).Get the validator of the Person Service.Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfGenericListResponse, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newExperimentalRestWebTarget, newWebTarget, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage, putVoidCompletionStage
-
Constructor Details
-
RemotePersonServiceImpl
- Since:
- 9.0
-
-
Method Details
-
create
Description copied from interface:RemotePersonService
Create a new active user- Specified by:
create
in interfaceRemotePersonService
- Parameters:
userDetailsForCreation
- User Details- Returns:
- com.atlassian.confluence.api.model.people.UserKey User Key
-
getCurrentUserCompletionStage
- Specified by:
getCurrentUserCompletionStage
in interfaceRemotePersonService
- Since:
- 9.0
-
validator
Description copied from interface:RemotePersonService
Get the validator of the Person Service.- Specified by:
validator
in interfaceRemotePersonService
-
find
- Specified by:
find
in interfaceRemotePersonService
-
disable
Description copied from interface:RemotePersonService
Disable the givenUser
identified by username. This method is idempotent i.e. if the user is already disabled then no action will be taken.- Specified by:
disable
in interfaceRemotePersonService
- Parameters:
username
- The username identifying the given user.
-
enable
Description copied from interface:RemotePersonService
Enable the givenUser
identified by username. This method is idempotent i.e. if the user is already enabled then no action will be taken.- Specified by:
enable
in interfaceRemotePersonService
- Parameters:
username
- The username identifying the given user.
-
update
Description copied from interface:RemotePersonService
Update the current user with the supplied details (full name or email).- Specified by:
update
in interfaceRemotePersonService
- Parameters:
userDetailsForUpdate
- User Details
-
update
Description copied from interface:RemotePersonService
Update the given user with the supplied details (full name or email).- Specified by:
update
in interfaceRemotePersonService
- Parameters:
username
- The username identifying the given user.userDetailsForUpdate
- User Details
-
delete
- Specified by:
delete
in interfaceRemotePersonService
-
search
- Specified by:
search
in interfaceRemotePersonService
-
addMembership
Description copied from interface:RemotePersonService
Add the givenUser
identified by username to the givenGroup
identified by groupName. This method is idempotent i.e. if the membership already exists then no action will be taken.- Specified by:
addMembership
in interfaceRemotePersonService
- Parameters:
username
- The username identifying the given user.groupName
- The group name identifying the given group.- Returns:
- CompletionStage
-
removeMembership
Description copied from interface:RemotePersonService
Remove the givenUser
identified by username from the givenGroup
identified by groupName. This method is idempotent i.e. if the membership is not present then no action will be taken.- Specified by:
removeMembership
in interfaceRemotePersonService
- Parameters:
username
- The username identifying the given user.groupName
- The group name identifying the given group.- Returns:
- CompletionStage
-
changeUserPassword
Description copied from interface:RemotePersonService
Change the password of the given user.- Specified by:
changeUserPassword
in interfaceRemotePersonService
- Parameters:
username
- The username identifying the given user.newPass
- New password- Returns:
- CompletionStage
-
changeMyPassword
Description copied from interface:RemotePersonService
Change the password of the current user.- Specified by:
changeMyPassword
in interfaceRemotePersonService
- Parameters:
passwordChangeDetails
- Password change details- Returns:
- CompletionStage
-
fetchActiveUsers
Description copied from interface:RemotePersonService
Fetch active users.- Specified by:
fetchActiveUsers
in interfaceRemotePersonService
- Returns:
- CompletionStage of PageResponse of Person
- Since:
- 9.3
-