public class AccountsRestClient extends Accounts.NotImplemented implements Accounts
Accounts.NotImplemented, Accounts.QueryRequest, Accounts.SuggestAccountsRequest| Constructor and Description |
|---|
AccountsRestClient(GerritRestClient gerritRestClient,
AccountsParser accountsParser) |
| Modifier and Type | Method and Description |
|---|---|
AccountApi |
id(int id) |
AccountApi |
id(String id)
Look up an account by ID.
|
AccountApi |
self()
Look up the account of the current in-scope user.
|
Accounts.SuggestAccountsRequest |
suggestAccounts()
Added in Gerrit 2.11.
|
Accounts.SuggestAccountsRequest |
suggestAccounts(String query)
Added in Gerrit 2.11.
|
create, create, query, querypublic AccountsRestClient(GerritRestClient gerritRestClient, AccountsParser accountsParser)
public AccountApi id(String id) throws RestApiException
AccountsNote: This method eagerly reads the account. Methods that mutate the
account do not necessarily re-read the account. Therefore, calling a getter method on an
instance after calling a mutation method on that same instance is not guaranteed to reflect the
mutation. It is not recommended to store references to AccountApi instances.
id in interface Accountsid in class Accounts.NotImplementedid - any identifier supported by the REST API, including numeric ID, email, or username.RestApiException - if an error occurred.public AccountApi id(int id) throws RestApiException
id in interface Accountsid in class Accounts.NotImplementedRestApiExceptionAccounts.id(String)public AccountApi self() throws RestApiException
Accountsself in interface Accountsself in class Accounts.NotImplementedRestApiExceptionAccounts.id(String)public Accounts.SuggestAccountsRequest suggestAccounts() throws RestApiException
suggestAccounts in interface AccountssuggestAccounts in class Accounts.NotImplementedRestApiExceptionpublic Accounts.SuggestAccountsRequest suggestAccounts(String query) throws RestApiException
suggestAccounts in interface AccountssuggestAccounts in class Accounts.NotImplementedRestApiExceptionAccounts.suggestAccounts()Copyright © 2018. All rights reserved.