public interface UserRestClient
| Modifier and Type | Method and Description |
|---|---|
io.atlassian.util.concurrent.Promise<User> |
createUser(UserInput userInput)
Create user.
|
io.atlassian.util.concurrent.Promise<Iterable<User>> |
findUsers(String username)
Returns a list of users that match the search string.
|
io.atlassian.util.concurrent.Promise<Iterable<User>> |
findUsers(String username,
Integer startAt,
Integer maxResults,
Boolean includeActive,
Boolean includeInactive)
Returns a list of users that match the search string.
|
io.atlassian.util.concurrent.Promise<User> |
getUser(String username)
Retrieves detailed information about selected user.
|
io.atlassian.util.concurrent.Promise<User> |
getUser(URI userUri)
Retrieves detailed information about selected user.
|
io.atlassian.util.concurrent.Promise<Void> |
removeUser(URI userUri)
Removes user.
|
io.atlassian.util.concurrent.Promise<User> |
updateUser(URI userUri,
UserInput userInput)
Modify user.
|
io.atlassian.util.concurrent.Promise<User> getUser(String username)
getUser(URI) instead as that method is more RESTful (well connected)username - JIRA username/loginRestClientException - in case of problems (connectivity, malformed messages, etc.)io.atlassian.util.concurrent.Promise<User> getUser(URI userUri)
getUser(String) as com.atlassian.jira.rest.it's more RESTful (well connected)userUri - URI of user resourceRestClientException - in case of problems (connectivity, malformed messages, etc.)io.atlassian.util.concurrent.Promise<User> createUser(UserInput userInput)
userInput - UserInput with data to updateRestClientException - in case of problems (connectivity, malformed messages, etc.)io.atlassian.util.concurrent.Promise<User> updateUser(URI userUri, UserInput userInput)
userUri - URI to selected user resourceuserInput - UserInput with data to updateRestClientException - in case of problems (connectivity, malformed messages, etc.)io.atlassian.util.concurrent.Promise<Void> removeUser(URI userUri)
userUri - URI to selected user resourceRestClientException - in case of problems (connectivity, malformed messages, etc.)io.atlassian.util.concurrent.Promise<Iterable<User>> findUsers(String username)
username - A query string used to search username, name or e-mail addressRestClientException - in case of problems (connectivity, malformed messages, etc.)io.atlassian.util.concurrent.Promise<Iterable<User>> findUsers(String username, @Nullable Integer startAt, @Nullable Integer maxResults, @Nullable Boolean includeActive, @Nullable Boolean includeInactive)
username - A query string used to search username, name or e-mail addressstartAt - The index of the first user to return (0-based)maxResults - The maximum number of users to return (defaults to 50). The maximum allowed value is 1000.
If you specify a value that is higher than this number, your search results will be truncated.includeActive - If true, then active users are included in the results (default true)includeInactive - If true, then inactive users are included in the results (default false)RestClientException - in case of problems (connectivity, malformed messages, etc.)Copyright © 2019 Atlassian. All rights reserved.