Class CachedRole
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
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LazyLoader<RoleModel,CachedRole.CompositeRolesRecord> protected final Stringprotected final Stringprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(KeycloakSession session, Supplier<RoleModel> roleModel) Use this so the cache invalidation can retrieve any previously cached role mappings to determine if this items should be evicted.getComposites(KeycloakSession session, Supplier<RoleModel> roleModel) getName()getRealm()booleanisComposite(KeycloakSession session, Supplier<RoleModel> roleModel) Methods inherited from class org.keycloak.models.cache.infinispan.entities.AbstractRevisioned
getCacheTimestamp, getId, getRevision, setRevisionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.cache.infinispan.entities.Revisioned
getId, getRevision, setRevision
-
Field Details
-
name
-
realm
-
description
-
composites
-
-
Constructor Details
-
CachedRole
-
-
Method Details
-
getName
-
getRealm
-
getDescription
-
isComposite
-
getComposites
public CachedRole.CompositeRolesRecord getComposites(KeycloakSession session, Supplier<RoleModel> roleModel) -
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)
-