Class CachedOrgGroupIds

java.lang.Object
org.keycloak.models.cache.infinispan.entities.AbstractRevisioned
org.keycloak.models.cache.infinispan.organization.CachedOrgGroupIds
All Implemented Interfaces:
CachedObject, InRealm, Revisioned

public class CachedOrgGroupIds extends AbstractRevisioned implements InRealm
Cached entry that stores organization group IDs resulting from queries. This is a lightweight cache entry that only stores group IDs, not the full group objects. Full groups are retrieved from the realm's group cache when needed.
  • Constructor Details

    • CachedOrgGroupIds

      public CachedOrgGroupIds(Long revision, String id, RealmModel realm, Stream<GroupModel> groups)
      Constructor for caching a stream of group models.
      Parameters:
      revision - the cache revision number
      id - the cache key
      realm - the realm
      groups - stream of groups to cache (will be consumed and converted to IDs)
  • Method Details

    • getGroupIds

      public Collection<String> getGroupIds()
      Returns the cached group IDs.
      Returns:
      immutable collection of group IDs
    • getRealm

      public String getRealm()
      Specified by:
      getRealm in interface InRealm