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 Classes Modifier and Type Class Description class
RemotePersonServiceImpl.RemotePersonFinderImpl
-
Nested 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
Constructors Constructor Description RemotePersonServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
Method Summary
-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
-
-
-
-
Constructor Detail
-
RemotePersonServiceImpl
public RemotePersonServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
create
public CompletionStage<UserKey> create(UserDetailsForCreation userDetailsForCreation)
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
-
getCurrentUser
@Deprecated public com.atlassian.util.concurrent.Promise<Person> getCurrentUser(Expansion... expansions)
Deprecated.since 7.0.1. UsegetCurrentUserCompletionStage(Expansion...)
instead.- Specified by:
getCurrentUser
in interfaceRemotePersonService
-
getCurrentUserCompletionStage
public CompletionStage<Person> getCurrentUserCompletionStage(Expansion... expansions)
- Specified by:
getCurrentUserCompletionStage
in interfaceRemotePersonService
- Since:
- 7.0.1
-
validator
public PersonService.Validator validator()
Description copied from interface:RemotePersonService
Get the validator of the Person Service.- Specified by:
validator
in interfaceRemotePersonService
-
find
public RemotePersonService.RemotePersonFinder find(Expansion... expansions)
- Specified by:
find
in interfaceRemotePersonService
-
disable
public CompletionStage<Void> disable(String username)
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
public CompletionStage<Void> enable(String username)
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.
-
delete
public LongTaskSubmission delete(Person personToDelete)
- Specified by:
delete
in interfaceRemotePersonService
-
search
public RemotePersonService.RemotePersonSearcher search()
- Specified by:
search
in interfaceRemotePersonService
-
addMembership
public CompletionStage<Void> addMembership(String username, String groupName)
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
public CompletionStage<Void> removeMembership(String username, String groupName)
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
public CompletionStage<Void> changeUserPassword(String username, String newPass)
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
public CompletionStage<Void> changeMyPassword(PasswordChangeDetails passwordChangeDetails)
Description copied from interface:RemotePersonService
Change the password of the current user.- Specified by:
changeMyPassword
in interfaceRemotePersonService
- Parameters:
passwordChangeDetails
- Password change details- Returns:
- CompletionStage
-
-