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 givenUseridentified by username.Enable the givenUseridentified 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:RemotePersonServiceCreate a new active user- Specified by:
createin interfaceRemotePersonService- Parameters:
userDetailsForCreation- User Details- Returns:
- com.atlassian.confluence.api.model.people.UserKey User Key
-
getCurrentUserCompletionStage
- Specified by:
getCurrentUserCompletionStagein interfaceRemotePersonService- Since:
- 9.0
-
validator
Description copied from interface:RemotePersonServiceGet the validator of the Person Service.- Specified by:
validatorin interfaceRemotePersonService
-
find
- Specified by:
findin interfaceRemotePersonService
-
disable
Description copied from interface:RemotePersonServiceDisable the givenUseridentified by username. This method is idempotent i.e. if the user is already disabled then no action will be taken.- Specified by:
disablein interfaceRemotePersonService- Parameters:
username- The username identifying the given user.
-
enable
Description copied from interface:RemotePersonServiceEnable the givenUseridentified by username. This method is idempotent i.e. if the user is already enabled then no action will be taken.- Specified by:
enablein interfaceRemotePersonService- Parameters:
username- The username identifying the given user.
-
update
Description copied from interface:RemotePersonServiceUpdate the current user with the supplied details (full name or email).- Specified by:
updatein interfaceRemotePersonService- Parameters:
userDetailsForUpdate- User Details
-
update
Description copied from interface:RemotePersonServiceUpdate the given user with the supplied details (full name or email).- Specified by:
updatein interfaceRemotePersonService- Parameters:
username- The username identifying the given user.userDetailsForUpdate- User Details
-
delete
- Specified by:
deletein interfaceRemotePersonService
-
search
- Specified by:
searchin interfaceRemotePersonService
-
addMembership
Description copied from interface:RemotePersonServiceAdd the givenUseridentified by username to the givenGroupidentified by groupName. This method is idempotent i.e. if the membership already exists then no action will be taken.- Specified by:
addMembershipin interfaceRemotePersonService- Parameters:
username- The username identifying the given user.groupName- The group name identifying the given group.- Returns:
- CompletionStage
-
removeMembership
Description copied from interface:RemotePersonServiceRemove the givenUseridentified by username from the givenGroupidentified by groupName. This method is idempotent i.e. if the membership is not present then no action will be taken.- Specified by:
removeMembershipin interfaceRemotePersonService- Parameters:
username- The username identifying the given user.groupName- The group name identifying the given group.- Returns:
- CompletionStage
-
changeUserPassword
Description copied from interface:RemotePersonServiceChange the password of the given user.- Specified by:
changeUserPasswordin interfaceRemotePersonService- Parameters:
username- The username identifying the given user.newPass- New password- Returns:
- CompletionStage
-
changeMyPassword
Description copied from interface:RemotePersonServiceChange the password of the current user.- Specified by:
changeMyPasswordin interfaceRemotePersonService- Parameters:
passwordChangeDetails- Password change details- Returns:
- CompletionStage
-
fetchActiveUsers
Description copied from interface:RemotePersonServiceFetch active users.- Specified by:
fetchActiveUsersin interfaceRemotePersonService- Returns:
- CompletionStage of PageResponse of Person
- Since:
- 9.3
-