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.

  • Field Details

    • _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.
    • tags

      public List<String> tags
      Tags, such as whether this account is a service user.
  • Constructor Details

    • AccountInfo

      public AccountInfo(Integer id)
    • AccountInfo

      public AccountInfo(String name, String email)
      To be used ONLY in connection with unregistered reviewers and CCs.
    • AccountInfo

      protected AccountInfo()
  • Method Details

    • copyTo

      public void copyTo(AccountInfo other)
      Copies properties of this AccountInfo to another instance.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object