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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GroupDescription.Basic
get(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
isOrContainsExternalGroup(AccountGroup.UUID groupId)
boolean
isVisibleToAll(AccountGroup.UUID uuid)
Returnstrue
if the group with the given UUID is visible to all registered users.GroupMembership
membershipsOf(CurrentUser user)
Returns the group membership checker for the backend.Collection<GroupReference>
suggest(String name, ProjectState project)
Returns suggestions for the group name sorted by name.
-
-
-
Method Detail
-
handles
boolean handles(AccountGroup.UUID uuid)
Returnstrue
if the backend can operate on the UUID.
-
get
GroupDescription.Basic get(AccountGroup.UUID uuid)
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
Collection<GroupReference> suggest(String name, ProjectState project)
Returns suggestions for the group name sorted by name.
-
membershipsOf
GroupMembership membershipsOf(CurrentUser user)
Returns the group membership checker for the backend.
-
isVisibleToAll
boolean isVisibleToAll(AccountGroup.UUID uuid)
Returnstrue
if the group with the given UUID is visible to all registered users.
-
isOrContainsExternalGroup
default boolean isOrContainsExternalGroup(AccountGroup.UUID groupId)
-
-