Package com.google.gerrit.server.account
Class UniversalGroupBackend
java.lang.Object
com.google.gerrit.server.account.UniversalGroupBackend
- All Implemented Interfaces:
GroupBackend
Universal implementation of the GroupBackend that works with the injected set of GroupBackends.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionget
(AccountGroup.UUID uuid) Looks up a group in the backend.boolean
handles
(AccountGroup.UUID uuid) Returnstrue
if the backend can operate on the UUID.boolean
Returnstrue
if the group with the given UUID is visible to all registered users.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 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
-
Method Details
-
handles
Description copied from interface:GroupBackend
Returnstrue
if the backend can operate on the UUID.- Specified by:
handles
in interfaceGroupBackend
-
get
Description copied from interface:GroupBackend
Looks up a group in the backend. If the group does not exist, null is returned.- Specified by:
get
in interfaceGroupBackend
- Parameters:
uuid
- the group identifier- Returns:
- the group
-
suggest
Description copied from interface:GroupBackend
Returns suggestions for the group name sorted by name.- Specified by:
suggest
in interfaceGroupBackend
-
membershipsOf
Description copied from interface:GroupBackend
Returns the group membership checker for the backend.- Specified by:
membershipsOf
in interfaceGroupBackend
-
isVisibleToAll
Description copied from interface:GroupBackend
Returnstrue
if the group with the given UUID is visible to all registered users.- Specified by:
isVisibleToAll
in interfaceGroupBackend
-