Class AccountInfo
java.lang.Object
com.google.gerrit.extensions.common.AccountInfo
- Direct Known Subclasses:
AccountDetailInfo
,ApprovalInfo
,ReviewerInfo
Representation of an account in the REST API.
This class determines the JSON format of accounts in the REST API.
This class defines fields for account properties that are frequently used. Additional fields
are defined in AccountDetailInfo
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Tags are additional properties of an account. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe numeric ID of the account.Whether the query would deliver more results if not limited.List of avatars of the user.The display name of the user.The preferred email address of the user.Whether the account is inactive.The full name of the user.List of the secondary email addresses of the user.Status message of the account (e.g.Tags, such as whether this account is a service user.The username of the user. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AccountInfo
(Integer id) AccountInfo
(String name, String email) To be used ONLY in connection with unregistered reviewers and CCs. -
Method Summary
-
Field Details
-
_accountId
The numeric ID of the account. -
name
The full name of the user. -
displayName
The display name of the user. This allows users to control how their name is displayed in the UI. It will likely be unset for most users. This account property is just a way to opt out of the host wide default strategy of choosing the display name, see accounts.accountDefaultDisplayName in the server config. The default strategy is not applied by the backend. The display name will just be left unset, and the client has to load and apply the default strategy. -
email
The preferred email address of the user. -
secondaryEmails
List of the secondary email addresses of the user. -
username
The username of the user. -
avatars
List of avatars of the user. -
_moreAccounts
Whether the query would deliver more results if not limited. Only set on the last account that is returned as a query result. -
status
Status message of the account (e.g. 'OOO' for out-of-office). -
inactive
Whether the account is inactive. -
tags
Tags, such as whether this account is a service user.
-
-
Constructor Details
-
AccountInfo
-
AccountInfo
To be used ONLY in connection with unregistered reviewers and CCs. -
AccountInfo
protected AccountInfo()
-
-
Method Details