Interface RemotePersonService
- All Known Implementing Classes:
RemotePersonServiceImpl
public interface RemotePersonService
PersonService implementation that communicates with Confluence remotely using the Confluence REST API.
Provides promise returning equivalents for the methods in PersonService.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceDeprecated.since 9.0.static interfacestatic interfaceDeprecated.since 9.0. -
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.getCurrentUserCompletionStage(Expansion... expansions) removeMembership(String username, String groupName) search()Get the validator of the Person Service.
-
Method Details
-
create
Create a new active user- Parameters:
userDetailsForCreation- User Details- Returns:
- com.atlassian.confluence.api.model.people.UserKey User Key
- Since:
- 9.0 8.4.0
-
getCurrentUserCompletionStage
- Since:
- 9.0
-
validator
PersonService.Validator validator()Get the validator of the Person Service. -
find
-
disable
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:
- 9.0
-
enable
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:
- 9.0
-
delete
-
search
-
addMembership
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:
- 9.0
-
removeMembership
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:
- 9.0 8.2.0
-
changeUserPassword
Change the password of the given user.- Parameters:
username- The username identifying the given user.newPass- New password- Returns:
- CompletionStage
- Since:
- 9.0
-
changeMyPassword
Change the password of the current user.- Parameters:
passwordChangeDetails- Password change details- Returns:
- CompletionStage
- Since:
- 9.0
-