Class PersonServiceImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.people.PersonServiceImpl
- All Implemented Interfaces:
- PersonService
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassclassNested classes/interfaces inherited from interface com.atlassian.confluence.api.service.people.PersonServicePersonService.PersonFinder, PersonService.PersonSearcher, PersonService.SinglePersonFetcher, PersonService.Validator
- 
Constructor SummaryConstructorsConstructorDescriptionPersonServiceImpl(PermissionManager permissionManager, PersonFactory personFactory, UserAccessorInternal userAccessorInternal, com.atlassian.user.GroupManager groupManager, FinderProxyFactory finderProxyFactory, LongRunningTaskManager longRunningTaskManager, LongTaskFactory longTaskFactory, I18NBeanFactory i18NBeanFactory, SettingsService settingsService, com.atlassian.event.api.EventPublisher eventPublisher, SpacePermissionManager spacePermissionManager, ConfluenceUserResolver confluenceUserResolver, LoginManager loginManager, PaginationService paginationService, SearchIndexAccessor contentSearchIndexAccessor, ScopesRequestCacheDelegate scopesRequestCacheDelegate, ServiceAccountPermissionManager serviceAccountPermissionManager) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMembership(String username, String groupName) voidchangeMyPassword(PasswordChangeDetails passwordChangeDetails) Change the password of the current user.voidchangeUserPassword(String userName, String newPass) Change the password of the given user.create(UserDetailsForCreation userDetailsForCreation) Create a new active userDelete the given person.voidDisable the givenUseridentified by username.voidEnable the givenUseridentified by username.fetchActiveUsers(PageRequest request) Fetch a page of active users (users which count towards the license limit).Create a person finder to locate persons Restrictions can be applied to the finder using the appropriate withFoo() methodgetCurrentUser(Expansion... expansions) Get the currently logged in uservoidremoveMembership(String username, String groupName) search()Create a person searcher to find people matching search criteria For given search category and/or criteria, return all People matching the supplied criteria.voidsetCurrentUser(String userName) voidupdate(UserDetailsForUpdate userDetailsForUpdate) Update the current user with the supplied details (full name or email).voidupdate(String username, UserDetailsForUpdate userDetailsForUpdate) Update the given user with the supplied details (full name or email).Get the validator of the Person Service.
- 
Constructor Details- 
PersonServiceImplpublic PersonServiceImpl(PermissionManager permissionManager, PersonFactory personFactory, UserAccessorInternal userAccessorInternal, com.atlassian.user.GroupManager groupManager, FinderProxyFactory finderProxyFactory, LongRunningTaskManager longRunningTaskManager, LongTaskFactory longTaskFactory, I18NBeanFactory i18NBeanFactory, SettingsService settingsService, com.atlassian.event.api.EventPublisher eventPublisher, SpacePermissionManager spacePermissionManager, ConfluenceUserResolver confluenceUserResolver, LoginManager loginManager, PaginationService paginationService, SearchIndexAccessor contentSearchIndexAccessor, ScopesRequestCacheDelegate scopesRequestCacheDelegate, ServiceAccountPermissionManager serviceAccountPermissionManager) 
 
- 
- 
Method Details- 
createDescription copied from interface:PersonServiceCreate a new active user- Specified by:
- createin interface- PersonService
- Parameters:
- userDetailsForCreation- User Details
- Returns:
- UserKey User Key
 
- 
setCurrentUser- Specified by:
- setCurrentUserin interface- PersonService
 
- 
getCurrentUserDescription copied from interface:PersonServiceGet the currently logged in user- Specified by:
- getCurrentUserin interface- PersonService
 
- 
findDescription copied from interface:PersonServiceCreate a person finder to locate persons Restrictions can be applied to the finder using the appropriate withFoo() methodFor example: personService.find() .withKey("DEV") .fetchOne()- Specified by:
- findin interface- PersonService
- Returns:
- a new PersonFinder
 
- 
fetchActiveUsersDescription copied from interface:PersonServiceFetch a page of active users (users which count towards the license limit). The page is ordered by last login date, ascending with people who never logged in first. The results will exclude users that are: - anonymous, - deactivated, - externally deleted, - shadowed - unlicensed This feature relies on search index and might not be accurate when site reindex is in progress.- Specified by:
- fetchActiveUsersin interface- PersonService
- Parameters:
- request- The page request
- Returns:
- a page of active users
 
- 
disableDescription copied from interface:PersonServiceDisable 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 interface- PersonService
- Parameters:
- username- The username identifying the given user.
 
- 
enableDescription copied from interface:PersonServiceEnable 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 interface- PersonService
- Parameters:
- username- The username identifying the given user.
 
- 
updateDescription copied from interface:PersonServiceUpdate the current user with the supplied details (full name or email).- Specified by:
- updatein interface- PersonService
- Parameters:
- userDetailsForUpdate- User Details
 
- 
updateDescription copied from interface:PersonServiceUpdate the given user with the supplied details (full name or email).- Specified by:
- updatein interface- PersonService
- Parameters:
- username- The username identifying the given user.
- userDetailsForUpdate- User Details
 
- 
deleteDescription copied from interface:PersonServiceDelete the given person.The deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to track progress. - Specified by:
- deletein interface- PersonService
- Parameters:
- personToDelete- the person to delete
- Returns:
- a LongTaskSubmission describing the user deletion operation
 
- 
searchDescription copied from interface:PersonServiceCreate a person searcher to find people matching search criteria For given search category and/or criteria, return all People matching the supplied criteria.For example: personService.search() .forUnsyncedUsers("joe") .fetchMany(..)- Specified by:
- searchin interface- PersonService
- Returns:
- a new PersonSearcher
 
- 
addMembershipDescription copied from interface:PersonServiceAdd 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 interface- PersonService
- Parameters:
- username- The username identifying the given user.
- groupName- The group name identifying the given group.
 
- 
removeMembershipDescription copied from interface:PersonServiceRemove 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 interface- PersonService
- Parameters:
- username- The username identifying the given user.
- groupName- The group name identifying the given group.
 
- 
changeUserPasswordDescription copied from interface:PersonServiceChange the password of the given user.- Specified by:
- changeUserPasswordin interface- PersonService
- Parameters:
- userName- The userName identifying the given user.
- newPass- New Password
 
- 
changeMyPasswordDescription copied from interface:PersonServiceChange the password of the current user.- Specified by:
- changeMyPasswordin interface- PersonService
- Parameters:
- passwordChangeDetails- password change details
 
- 
validatorDescription copied from interface:PersonServiceGet the validator of the Person Service.- Specified by:
- validatorin interface- PersonService
 
 
-