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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<AccountGroup.UUID>
allExternalMembers()
void
evictGroupsWithMember(Account.Id memberId)
void
evictParentGroupsOf(AccountGroup.UUID groupId)
Collection<AccountGroup.UUID>
getGroupsWithMember(Account.Id memberId)
Returns the UUIDs of all groups of which the specified account is a direct member.Collection<AccountGroup.UUID>
parentGroupsOf(AccountGroup.UUID groupId)
Returns the parent groups of a subgroup.
-
-
-
Method Detail
-
getGroupsWithMember
Collection<AccountGroup.UUID> getGroupsWithMember(Account.Id memberId)
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
Collection<AccountGroup.UUID> parentGroupsOf(AccountGroup.UUID groupId)
Returns the parent groups of a subgroup.- 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
void evictGroupsWithMember(Account.Id memberId)
-
evictParentGroupsOf
void evictParentGroupsOf(AccountGroup.UUID groupId)
-
-