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 interface
static interface
Deprecated.since 9.0.static interface
static interface
Deprecated.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 givenUser
identified by username.Enable the givenUser
identified 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.
-
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 givenUser
identified 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 givenUser
identified 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
-
update
Update the current user with the supplied details (full name or email).- Parameters:
userDetailsForUpdate
- User Details- Since:
- 9.3.0
-
update
Update the given user with the supplied details (full name or email).- Parameters:
username
- The username identifying the given user.userDetailsForUpdate
- User Details- Since:
- 9.3.0
-
delete
-
search
-
addMembership
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.- Parameters:
username
- The username identifying the given user.groupName
- The group name identifying the given group.- Returns:
- CompletionStage
- Since:
- 9.0
-
removeMembership
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.- 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
-
fetchActiveUsers
Fetch active users.- Returns:
- CompletionStage of PageResponse of Person
- Since:
- 9.3
-