Class AccountGroup


  • public final class AccountGroup
    extends Object
    Named group of one or more accounts, typically used for access controls.
    • Field Detail

      • groupId

        protected AccountGroup.Id groupId
        Unique identity, to link entities as name can change.
      • description

        protected String description
        A textual description of the group's purpose.
      • visibleToAll

        protected boolean visibleToAll
      • groupUUID

        protected AccountGroup.UUID groupUUID
        Globally unique identifier name for this group.
      • ownerGroupUUID

        protected AccountGroup.UUID ownerGroupUUID
        Identity of the group whose members can manage this group.

        This can be a self-reference to indicate the group's members manage itself.

    • Method Detail

      • auditCreationInstantTs

        public static Timestamp auditCreationInstantTs()
      • isInternalGroup

        public static boolean isInternalGroup​(AccountGroup.UUID uuid)
        Returns:
        true if the UUID is for a group managed within Gerrit.
      • getName

        public String getName()
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String d)
      • setVisibleToAll

        public void setVisibleToAll​(boolean visibleToAll)
      • isVisibleToAll

        public boolean isVisibleToAll()
      • getCreatedOn

        public Timestamp getCreatedOn()
      • setCreatedOn

        public void setCreatedOn​(Timestamp createdOn)