Package com.google.gerrit.server.account
Interface GroupBackend
- All Known Implementing Classes:
AbstractGroupBackend
,InternalGroupBackend
,SystemGroupBackend
,UniversalGroupBackend
public interface GroupBackend
Implementations of GroupBackend provide lookup and membership accessors to a group system.
-
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.default boolean
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.
-
Method Details
-
handles
Returnstrue
if the backend can operate on the UUID. -
get
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
Returns suggestions for the group name sorted by name. -
membershipsOf
Returns the group membership checker for the backend. -
isVisibleToAll
Returnstrue
if the group with the given UUID is visible to all registered users. -
isOrContainsExternalGroup
-