Package com.google.gerrit.entities
Class AccountGroup
- java.lang.Object
-
- com.google.gerrit.entities.AccountGroup
-
public final class AccountGroup extends Object
Named group of one or more accounts, typically used for access controls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccountGroup.Id
Synthetic key to link to within the databasestatic class
AccountGroup.NameKey
Group name keystatic class
AccountGroup.UUID
Globally unique identifier.
-
Field Summary
Fields Modifier and Type Field Description protected Timestamp
createdOn
protected String
description
A textual description of the group's purpose.protected AccountGroup.Id
groupId
Unique identity, to link entities asname
can change.protected AccountGroup.UUID
groupUUID
Globally unique identifier name for this group.protected AccountGroup.NameKey
name
Unique name of this group within the system.protected AccountGroup.UUID
ownerGroupUUID
Identity of the group whose members can manage this group.protected boolean
visibleToAll
-
Constructor Summary
Constructors Modifier Constructor Description protected
AccountGroup()
AccountGroup(AccountGroup other)
AccountGroup(AccountGroup.NameKey newName, AccountGroup.Id newId, AccountGroup.UUID uuid, Timestamp createdOn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Timestamp
auditCreationInstantTs()
boolean
equals(Object o)
Timestamp
getCreatedOn()
String
getDescription()
AccountGroup.UUID
getGroupUUID()
AccountGroup.Id
getId()
String
getName()
AccountGroup.NameKey
getNameKey()
AccountGroup.UUID
getOwnerGroupUUID()
int
hashCode()
static AccountGroup.Id
id(int id)
static boolean
isInternalGroup(AccountGroup.UUID uuid)
boolean
isVisibleToAll()
static AccountGroup.NameKey
nameKey(String n)
void
setCreatedOn(Timestamp createdOn)
void
setDescription(String d)
void
setGroupUUID(AccountGroup.UUID uuid)
void
setNameKey(AccountGroup.NameKey nameKey)
void
setOwnerGroupUUID(AccountGroup.UUID uuid)
void
setVisibleToAll(boolean visibleToAll)
String
toString()
static AccountGroup.UUID
uuid(String n)
-
-
-
Field Detail
-
name
protected AccountGroup.NameKey name
Unique name of this group within the system.
-
groupId
protected AccountGroup.Id groupId
Unique identity, to link entities asname
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.
-
createdOn
protected Timestamp createdOn
-
-
Constructor Detail
-
AccountGroup
protected AccountGroup()
-
AccountGroup
public AccountGroup(AccountGroup.NameKey newName, AccountGroup.Id newId, AccountGroup.UUID uuid, Timestamp createdOn)
-
AccountGroup
public AccountGroup(AccountGroup other)
-
-
Method Detail
-
auditCreationInstantTs
public static Timestamp auditCreationInstantTs()
-
nameKey
public static AccountGroup.NameKey nameKey(String n)
-
uuid
public static AccountGroup.UUID uuid(String n)
-
isInternalGroup
public static boolean isInternalGroup(AccountGroup.UUID uuid)
- Returns:
- true if the UUID is for a group managed within Gerrit.
-
id
public static AccountGroup.Id id(int id)
-
getId
public AccountGroup.Id getId()
-
getName
public String getName()
-
getNameKey
public AccountGroup.NameKey getNameKey()
-
setNameKey
public void setNameKey(AccountGroup.NameKey nameKey)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String d)
-
getOwnerGroupUUID
public AccountGroup.UUID getOwnerGroupUUID()
-
setOwnerGroupUUID
public void setOwnerGroupUUID(AccountGroup.UUID uuid)
-
setVisibleToAll
public void setVisibleToAll(boolean visibleToAll)
-
isVisibleToAll
public boolean isVisibleToAll()
-
getGroupUUID
public AccountGroup.UUID getGroupUUID()
-
setGroupUUID
public void setGroupUUID(AccountGroup.UUID uuid)
-
getCreatedOn
public Timestamp getCreatedOn()
-
setCreatedOn
public void setCreatedOn(Timestamp createdOn)
-
-