@ExperimentalApi
public interface PersonService
Modifier and Type | Interface and Description |
---|---|
static interface |
PersonService.PersonFinder
A finder for locating persons.
|
static interface |
PersonService.PersonSearcher
A searcher for finding people based on a search term.
|
static interface |
PersonService.SinglePersonFetcher
only here so that the remote person service can proxy it.
|
static interface |
PersonService.Validator
Provides methods for validating the view method.
|
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.
|
Person getCurrentUser(Expansion... expansions)
PersonService.PersonFinder find(Expansion... expansions)
For example:
personService.find()
.withKey("DEV")
.fetchOne()
LongTaskSubmission delete(Person personToDelete)
The deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to track progress.
personToDelete
- the person to deletePersonService.PersonSearcher search()
For example:
personService.search()
.forUnsyncedUsers("joe")
.fetchMany(..)
PersonService.Validator validator()
Copyright © 2003–2020 Atlassian. All rights reserved.