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 classRemotePersonServiceImpl.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CompletionStage<Void>addMembership(String username, String groupName)LongTaskSubmissiondelete(Person personToDelete)CompletionStage<Void>disable(String username)Disable the givenUseridentified by username.CompletionStage<Void>enable(String username)Enable the givenUseridentified by username.RemotePersonService.RemotePersonFinderfind(Expansion... expansions)com.atlassian.util.concurrent.Promise<Person>getCurrentUser(Expansion... expansions)Deprecated.since 7.0.1.CompletionStage<Person>getCurrentUserCompletionStage(Expansion... expansions)CompletionStage<Void>removeMembership(String username, String groupName)RemotePersonService.RemotePersonSearchersearch()PersonService.Validatorvalidator()Get the validator of the Person Service.-
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, putCompletionStage, putFuture
-
-
-
-
Constructor Detail
-
RemotePersonServiceImpl
public RemotePersonServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
getCurrentUser
@Deprecated public com.atlassian.util.concurrent.Promise<Person> getCurrentUser(Expansion... expansions)
Deprecated.since 7.0.1. UsegetCurrentUserCompletionStage(Expansion...)instead.- Specified by:
getCurrentUserin interfaceRemotePersonService
-
getCurrentUserCompletionStage
public CompletionStage<Person> getCurrentUserCompletionStage(Expansion... expansions)
- Specified by:
getCurrentUserCompletionStagein interfaceRemotePersonService- Since:
- 7.0.1
-
validator
public PersonService.Validator validator()
Description copied from interface:RemotePersonServiceGet the validator of the Person Service.- Specified by:
validatorin interfaceRemotePersonService
-
find
public RemotePersonService.RemotePersonFinder find(Expansion... expansions)
- Specified by:
findin interfaceRemotePersonService
-
disable
public CompletionStage<Void> disable(String username)
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
public CompletionStage<Void> enable(String username)
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.
-
delete
public LongTaskSubmission delete(Person personToDelete)
- Specified by:
deletein interfaceRemotePersonService
-
search
public RemotePersonService.RemotePersonSearcher search()
- Specified by:
searchin interfaceRemotePersonService
-
addMembership
public CompletionStage<Void> addMembership(String username, String groupName)
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
public CompletionStage<Void> removeMembership(String username, String groupName)
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
-
-