Package com.google.gerrit.server.account
Interface GroupBackend
-
- All Known Implementing Classes:
AbstractGroupBackend
,InternalGroupBackend
,LdapGroupBackend
,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 Modifier and Type Method Description GroupDescription.Basic
get(AccountGroup.UUID uuid)
Looks up a group in the backend.boolean
handles(AccountGroup.UUID uuid)
boolean
isVisibleToAll(AccountGroup.UUID uuid)
GroupMembership
membershipsOf(IdentifiedUser user)
Collection<GroupReference>
suggest(String name, ProjectState project)
-
-
-
Method Detail
-
handles
boolean handles(AccountGroup.UUID uuid)
- Returns:
true
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(IdentifiedUser user)
- Returns:
- the group membership checker for the backend.
-
isVisibleToAll
boolean isVisibleToAll(AccountGroup.UUID uuid)
- Returns:
true
if the group with the given UUID is visible to all registered users.
-
-