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.UUIDCommon UUID assigned to the "Anonymous Users" group.static final AccountGroup.UUIDCommon UUID assigned to the "Change Owner" placeholder group.static final AccountGroup.UUIDCommon UUID assigned to the "Project Owners" placeholder group.static final AccountGroup.UUIDCommon 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()booleanhandles(AccountGroup.UUID uuid) Returnstrueif the backend can operate on the UUID.static booleanstatic booleanstatic booleanmembershipsOf(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
isVisibleToAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:GroupBackendReturnstrueif the backend can operate on the UUID. -
get
Description copied from interface:GroupBackendLooks 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:GroupBackendReturns suggestions for the group name sorted by name. -
membershipsOf
Description copied from interface:GroupBackendReturns the group membership checker for the backend.
-