Class AccountInfo
- java.lang.Object
-
- com.google.gerrit.extensions.common.AccountInfo
-
- Direct Known Subclasses:
AccountDetailInfo
,ApprovalInfo
,ReviewerInfo
public class AccountInfo extends Object
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 Classes Modifier and Type Class Description static class
AccountInfo.Tags
Tags are additional properties of an account.
-
Field Summary
Fields Modifier and Type Field Description Integer
_accountId
The numeric ID of the account.Boolean
_moreAccounts
Whether the query would deliver more results if not limited.List<AvatarInfo>
avatars
List of avatars of the user.String
displayName
The display name of the user.String
email
The preferred email address of the user.Boolean
inactive
Whether the account is inactive.String
name
The full name of the user.List<String>
secondaryEmails
List of the secondary email addresses of the user.String
status
Status message of the account (e.g.List<String>
tags
Tags, such as whether this account is a service user.String
username
The username of the user.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AccountInfo()
AccountInfo(Integer id)
AccountInfo(String name, String email)
To be used ONLY in connection with unregistered reviewers and CCs.
-
-
-
Field Detail
-
_accountId
public Integer _accountId
The numeric ID of the account.
-
name
public String name
The full name of the user.
-
displayName
public String 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
public String email
The preferred email address of the user.
-
secondaryEmails
public List<String> secondaryEmails
List of the secondary email addresses of the user.
-
username
public String username
The username of the user.
-
avatars
public List<AvatarInfo> avatars
List of avatars of the user.
-
_moreAccounts
public Boolean _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
public String status
Status message of the account (e.g. 'OOO' for out-of-office).
-
inactive
public Boolean inactive
Whether the account is inactive.
-
-