Class PersonServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.people.PersonServiceImpl
-
- All Implemented Interfaces:
PersonService
public class PersonServiceImpl extends Object implements PersonService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PersonServiceImpl.PersonFinderImpl
class
PersonServiceImpl.PersonSearcherImpl
class
PersonServiceImpl.ValidatorImpl
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.people.PersonService
PersonService.PersonFinder, PersonService.PersonSearcher, PersonService.SinglePersonFetcher, PersonService.Validator
-
-
Constructor Summary
Constructors Constructor Description PersonServiceImpl(PermissionManager permissionManager, PersonFactory personFactory, UserAccessorInternal userAccessor, com.atlassian.user.GroupManager groupManager, FinderProxyFactory finderProxyFactory, LongRunningTaskManager longRunningTaskManager, LongTaskFactory longTaskFactory, I18NBeanFactory i18NBeanFactory, SettingsManager settingsManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongTaskSubmission
delete(Person personToDelete)
Delete the given person.PersonService.PersonFinder
find(Expansion... expansions)
Create a person finder to locate persons Restrictions can be applied to the finder using the appropriate withFoo() methodPerson
getCurrentUser(Expansion... expansions)
Get the currently logged in userPersonService.PersonSearcher
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.PersonService.Validator
validator()
Get the validator of the Person Service.
-
-
-
Constructor Detail
-
PersonServiceImpl
public PersonServiceImpl(PermissionManager permissionManager, PersonFactory personFactory, UserAccessorInternal userAccessor, com.atlassian.user.GroupManager groupManager, FinderProxyFactory finderProxyFactory, LongRunningTaskManager longRunningTaskManager, LongTaskFactory longTaskFactory, I18NBeanFactory i18NBeanFactory, SettingsManager settingsManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
getCurrentUser
public Person getCurrentUser(Expansion... expansions)
Description copied from interface:PersonService
Get the currently logged in user- Specified by:
getCurrentUser
in interfacePersonService
-
find
public PersonService.PersonFinder find(Expansion... expansions)
Description copied from interface:PersonService
Create 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:
find
in interfacePersonService
- Returns:
- a new PersonFinder
-
delete
public LongTaskSubmission delete(Person personToDelete)
Description copied from interface:PersonService
Delete the given person.The deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to track progress.
- Specified by:
delete
in interfacePersonService
- Parameters:
personToDelete
- the person to delete- Returns:
- a LongTaskSubmission describing the user deletion operation
-
search
public PersonService.PersonSearcher search()
Description copied from interface:PersonService
Create 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:
search
in interfacePersonService
- Returns:
- a new PersonSearcher
-
validator
public PersonService.Validator validator()
Description copied from interface:PersonService
Get the validator of the Person Service.- Specified by:
validator
in interfacePersonService
-
-