Package com.google.gerrit.server.account
Class GroupIncludeCacheImpl
java.lang.Object
com.google.gerrit.server.account.GroupIncludeCacheImpl
- All Implemented Interfaces:
GroupIncludeCache
Tracks group inclusions in memory for efficient access.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns set of any UUIDs that are not internal groups.void
evictGroupsWithMember
(Account.Id memberId) void
evictParentGroupsOf
(AccountGroup.UUID groupId) getGroupsWithMember
(Account.Id memberId) Returns the UUIDs of all groups of which the specified account is a direct member.static com.google.inject.Module
module()
parentGroupsOf
(AccountGroup.UUID groupId) Returns the parent groups of a subgroup.parentGroupsOf
(Set<AccountGroup.UUID> groupIds) Returns the parent groups of the provided subgroups.
-
Method Details
-
module
public static com.google.inject.Module module() -
getGroupsWithMember
Description copied from interface:GroupIncludeCache
Returns the UUIDs of all groups of which the specified account is a direct member.- Specified by:
getGroupsWithMember
in interfaceGroupIncludeCache
- Parameters:
memberId
- the ID of the account- Returns:
- the UUIDs of all groups having the account as member
-
parentGroupsOf
Description copied from interface:GroupIncludeCache
Returns the parent groups of a subgroup.- Specified by:
parentGroupsOf
in interfaceGroupIncludeCache
- Parameters:
groupId
- the UUID of the subgroup- Returns:
- the UUIDs of all direct parent groups
-
parentGroupsOf
Description copied from interface:GroupIncludeCache
Returns the parent groups of the provided subgroups.- Specified by:
parentGroupsOf
in interfaceGroupIncludeCache
- Parameters:
groupIds
- the UUID of the subgroup- Returns:
- the UUIDs of all direct parent groups
-
evictGroupsWithMember
- Specified by:
evictGroupsWithMember
in interfaceGroupIncludeCache
-
evictParentGroupsOf
- Specified by:
evictParentGroupsOf
in interfaceGroupIncludeCache
-
allExternalMembers
Description copied from interface:GroupIncludeCache
Returns set of any UUIDs that are not internal groups.- Specified by:
allExternalMembers
in interfaceGroupIncludeCache
-