Package com.google.gerrit.server.group
Class SystemGroupBackend
java.lang.Object
com.google.gerrit.server.account.AbstractGroupBackend
com.google.gerrit.server.group.SystemGroupBackend
- All Implemented Interfaces:
GroupBackend
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AccountGroup.UUID
Common UUID assigned to the "Anonymous Users" group.static final AccountGroup.UUID
Common UUID assigned to the "Change Owner" placeholder group.static final AccountGroup.UUID
Common UUID assigned to the "Project Owners" placeholder group.static final AccountGroup.UUID
Common UUID assigned to the "Registered Users" group.static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(AccountGroup.UUID uuid) Looks up a group in the backend.getGroup
(AccountGroup.UUID uuid) getNames()
boolean
handles
(AccountGroup.UUID uuid) Returnstrue
if the backend can operate on the UUID.static boolean
static boolean
static boolean
membershipsOf
(CurrentUser user) Returns the group membership checker for the backend.suggest
(String name, ProjectState project) Returns suggestions for the group name sorted by name.Methods inherited from class com.google.gerrit.server.account.AbstractGroupBackend
isVisibleToAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gerrit.server.account.GroupBackend
isOrContainsExternalGroup
-
Field Details
-
SYSTEM_GROUP_SCHEME
- See Also:
-
ANONYMOUS_USERS
Common UUID assigned to the "Anonymous Users" group. -
REGISTERED_USERS
Common UUID assigned to the "Registered Users" group. -
PROJECT_OWNERS
Common UUID assigned to the "Project Owners" placeholder group. -
CHANGE_OWNER
Common UUID assigned to the "Change Owner" placeholder group.
-
-
Constructor Details
-
SystemGroupBackend
@Inject public SystemGroupBackend(org.eclipse.jgit.lib.Config cfg)
-
-
Method Details
-
isSystemGroup
-
isAnonymousOrRegistered
-
isAnonymousOrRegistered
-
getGroup
-
getNames
-
getReservedNames
-
handles
Description copied from interface:GroupBackend
Returnstrue
if the backend can operate on the UUID. -
get
Description copied from interface:GroupBackend
Looks up a group in the backend. If the group does not exist, null is returned.- Parameters:
uuid
- the group identifier- Returns:
- the group
-
suggest
Description copied from interface:GroupBackend
Returns suggestions for the group name sorted by name. -
membershipsOf
Description copied from interface:GroupBackend
Returns the group membership checker for the backend.
-