java.lang.Object
org.keycloak.models.cache.infinispan.entities.AbstractRevisioned
org.keycloak.models.cache.infinispan.entities.CachedRole
All Implemented Interfaces:
CachedObject, InRealm, Revisioned
Direct Known Subclasses:
CachedClientRole, CachedRealmRole

public class CachedRole extends AbstractRevisioned implements InRealm
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

    • name

      protected final String name
    • realm

      protected final String realm
    • description

      protected final String description
    • composite

      protected boolean composite
    • composites

      protected final LazyLoader<RoleModel,Set<String>> composites
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getRealm

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

      public String getDescription()
    • isComposite

      public boolean isComposite()
    • getComposites

      public Set<String> getComposites(KeycloakSession session, Supplier<RoleModel> roleModel)
    • getCachedComposites

      public Set<String> getCachedComposites()
      Use this so the cache invalidation can retrieve any previously cached role mappings to determine if this items should be evicted. Will return an empty list if it hasn't been cached yet (and then no invalidation is necessary)
    • getAttributes

      public MultivaluedHashMap<String,String> getAttributes(KeycloakSession session, Supplier<RoleModel> roleModel)