Interface RemotePersonService
-
- All Known Implementing Classes:
RemotePersonServiceImpl
public interface RemotePersonServicePersonServiceimplementation that communicates with Confluence remotely using the Confluence REST API.Provides promise returning equivalents for the methods in PersonService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRemotePersonService.RemotePersonFinderstatic interfaceRemotePersonService.RemotePersonManyFetcher<T>Deprecated.since 7.0.1.static interfaceRemotePersonService.RemotePersonSearcherstatic interfaceRemotePersonService.RemotePersonSingleFetcherDeprecated.since 7.0.1.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getCurrentUser
@Deprecated com.atlassian.util.concurrent.Promise<Person> getCurrentUser(Expansion... expansions)
Deprecated.since 7.0.1. UsegetCurrentUserCompletionStage(Expansion...)instead.
-
getCurrentUserCompletionStage
CompletionStage<Person> getCurrentUserCompletionStage(Expansion... expansions)
- Since:
- 7.0.1
-
validator
PersonService.Validator validator()
Get the validator of the Person Service.
-
find
RemotePersonService.RemotePersonFinder find(Expansion... expansions)
-
disable
CompletionStage<Void> disable(String username)
Disable the givenUseridentified by username. This method is idempotent i.e. if the user is already disabled then no action will be taken.- Parameters:
username- The username identifying the given user.- Since:
- 8.2.0
-
enable
CompletionStage<Void> enable(String username)
Enable the givenUseridentified by username. This method is idempotent i.e. if the user is already enabled then no action will be taken.- Parameters:
username- The username identifying the given user.- Since:
- 8.2.0
-
delete
LongTaskSubmission delete(Person personToDelete)
-
search
RemotePersonService.RemotePersonSearcher search()
-
addMembership
CompletionStage<Void> addMembership(String username, String groupName)
Add 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.- Parameters:
username- The username identifying the given user.groupName- The group name identifying the given group.- Returns:
- CompletionStage
- Since:
- 8.2.0
-
removeMembership
CompletionStage<Void> removeMembership(String username, String groupName)
Remove 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.- Parameters:
username- The username identifying the given user.groupName- The group name identifying the given group.- Returns:
- CompletionStage
- Since:
- 8.2.0
-
-