Package com.google.gerrit.server.account
Class InternalGroupBackend
- java.lang.Object
-
- com.google.gerrit.server.account.InternalGroupBackend
-
- All Implemented Interfaces:
GroupBackend
public class InternalGroupBackend extends Object implements GroupBackend
Implementation of GroupBackend for the internal group system.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupDescription.Internal
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.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
public boolean handles(AccountGroup.UUID uuid)
Description copied from interface:GroupBackend
Returnstrue
if the backend can operate on the UUID.- Specified by:
handles
in interfaceGroupBackend
-
get
public GroupDescription.Internal get(AccountGroup.UUID uuid)
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
public Collection<GroupReference> suggest(String name, ProjectState project)
Description copied from interface:GroupBackend
Returns suggestions for the group name sorted by name.- Specified by:
suggest
in interfaceGroupBackend
-
membershipsOf
public GroupMembership membershipsOf(CurrentUser user)
Description copied from interface:GroupBackend
Returns the group membership checker for the backend.- Specified by:
membershipsOf
in interfaceGroupBackend
-
isVisibleToAll
public boolean isVisibleToAll(AccountGroup.UUID uuid)
Description copied from interface:GroupBackend
Returnstrue
if the group with the given UUID is visible to all registered users.- Specified by:
isVisibleToAll
in interfaceGroupBackend
-
-