Package com.google.gerrit.server.account
Interface GroupIncludeCache
- All Known Implementing Classes:
GroupIncludeCacheImpl
public interface GroupIncludeCache
Tracks group inclusions in memory for efficient access.
-
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.parentGroupsOf
(AccountGroup.UUID groupId) Returns the parent groups of a subgroup.parentGroupsOf
(Set<AccountGroup.UUID> groupId) Returns the parent groups of the provided subgroups.
-
Method Details
-
getGroupsWithMember
Returns the UUIDs of all groups of which the specified account is a direct member.- Parameters:
memberId
- the ID of the account- Returns:
- the UUIDs of all groups having the account as member
-
parentGroupsOf
Returns the parent groups of a subgroup.- Parameters:
groupId
- the UUID of the subgroup- Returns:
- the UUIDs of all direct parent groups
-
parentGroupsOf
Returns the parent groups of the provided subgroups.- Parameters:
groupId
- the UUID of the subgroup- Returns:
- the UUIDs of all direct parent groups
-
allExternalMembers
Collection<AccountGroup.UUID> allExternalMembers()Returns set of any UUIDs that are not internal groups. -
evictGroupsWithMember
-
evictParentGroupsOf
-