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)
PersonService
getCurrentUser
in interface PersonService
public PersonService.PersonFinder find(Expansion... expansions)
PersonService
For example:
personService.find()
.withKey("DEV")
.fetchOne()
find
in interface PersonService
public LongTaskSubmission delete(Person personToDelete)
PersonService
The deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to track progress.
delete
in interface PersonService
personToDelete
- the person to deletepublic PersonService.PersonSearcher search()
PersonService
For example:
personService.search()
.forUnsyncedUsers("joe")
.fetchMany(..)
search
in interface PersonService
public PersonService.Validator validator()
PersonService
validator
in interface PersonService
Copyright © 2003–2021 Atlassian. All rights reserved.