public class PersonServiceImpl extends Object implements PersonService
| Modifier and Type | Class and Description |
|---|---|
class |
PersonServiceImpl.PersonFinderImpl |
class |
PersonServiceImpl.PersonSearcherImpl |
class |
PersonServiceImpl.ValidatorImpl |
PersonService.PersonFinder, PersonService.PersonSearcher, PersonService.SinglePersonFetcher, PersonService.Validator| Constructor and 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) |
| Modifier and Type | Method and 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() method
|
Person |
getCurrentUser(Expansion... expansions)
Get the currently logged in user
|
PersonService.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.
|
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)
public Person getCurrentUser(Expansion... expansions)
PersonServicegetCurrentUser in interface PersonServicepublic PersonService.PersonFinder find(Expansion... expansions)
PersonServiceFor example:
personService.find()
.withKey("DEV")
.fetchOne()
find in interface PersonServicepublic LongTaskSubmission delete(Person personToDelete)
PersonServiceThe deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to track progress.
delete in interface PersonServicepersonToDelete - the person to deletepublic PersonService.PersonSearcher search()
PersonServiceFor example:
personService.search()
.forUnsyncedUsers("joe")
.fetchMany(..)
search in interface PersonServicepublic PersonService.Validator validator()
PersonServicevalidator in interface PersonServiceCopyright © 2003–2018 Atlassian. All rights reserved.