Interface GroupIncludeCache

All Known Implementing Classes:
GroupIncludeCacheImpl

public interface GroupIncludeCache
Tracks group inclusions in memory for efficient access.
  • Method Details

    • 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

      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

      void evictGroupsWithMember(Account.Id memberId)
    • evictParentGroupsOf

      void evictParentGroupsOf(AccountGroup.UUID groupId)