public class SystemGroupBackend extends AbstractGroupBackend
Modifier and Type | Field and Description |
---|---|
static com.google.gerrit.reviewdb.client.AccountGroup.UUID |
ANONYMOUS_USERS
Common UUID assigned to the "Anonymous Users" group.
|
static com.google.gerrit.reviewdb.client.AccountGroup.UUID |
CHANGE_OWNER
Common UUID assigned to the "Change Owner" placeholder group.
|
static com.google.gerrit.reviewdb.client.AccountGroup.UUID |
PROJECT_OWNERS
Common UUID assigned to the "Project Owners" placeholder group.
|
static com.google.gerrit.reviewdb.client.AccountGroup.UUID |
REGISTERED_USERS
Common UUID assigned to the "Registered Users" group.
|
static String |
SYSTEM_GROUP_SCHEME |
Constructor and Description |
---|
SystemGroupBackend() |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.common.data.GroupDescription.Basic |
get(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid)
Looks up a group in the backend.
|
static com.google.gerrit.common.data.GroupReference |
getGroup(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid) |
static List<String> |
getNames() |
boolean |
handles(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid) |
static boolean |
isAnonymousOrRegistered(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid) |
static boolean |
isAnonymousOrRegistered(com.google.gerrit.common.data.GroupReference ref) |
static boolean |
isSystemGroup(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid) |
GroupMembership |
membershipsOf(IdentifiedUser user) |
Collection<com.google.gerrit.common.data.GroupReference> |
suggest(String name,
ProjectControl project) |
isVisibleToAll
public static final String SYSTEM_GROUP_SCHEME
public static final com.google.gerrit.reviewdb.client.AccountGroup.UUID ANONYMOUS_USERS
public static final com.google.gerrit.reviewdb.client.AccountGroup.UUID REGISTERED_USERS
public static final com.google.gerrit.reviewdb.client.AccountGroup.UUID PROJECT_OWNERS
public static final com.google.gerrit.reviewdb.client.AccountGroup.UUID CHANGE_OWNER
public static boolean isSystemGroup(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid)
public static boolean isAnonymousOrRegistered(com.google.gerrit.common.data.GroupReference ref)
public static boolean isAnonymousOrRegistered(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid)
public static com.google.gerrit.common.data.GroupReference getGroup(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid)
public boolean handles(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid)
true
if the backend can operate on the UUID.public com.google.gerrit.common.data.GroupDescription.Basic get(com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid)
GroupBackend
uuid
- the group identifierpublic Collection<com.google.gerrit.common.data.GroupReference> suggest(String name, ProjectControl project)
public GroupMembership membershipsOf(IdentifiedUser user)