public class StoreFactoryCacheSession extends Object implements CachedStoreFactoryProvider
| Modifier and Type | Class and Description |
|---|---|
protected class |
StoreFactoryCacheSession.PolicyCache |
protected class |
StoreFactoryCacheSession.ResourceCache |
protected class |
StoreFactoryCacheSession.ResourceServerCache |
protected class |
StoreFactoryCacheSession.ScopeCache |
| Modifier and Type | Field and Description |
|---|---|
protected StoreFactoryCacheManager |
cache |
protected boolean |
clearAll |
protected StoreFactory |
delegate |
protected Set<InvalidationEvent> |
invalidationEvents |
protected Set<String> |
invalidations |
protected static org.jboss.logging.Logger |
logger |
protected Map<String,PolicyAdapter> |
managedPolicies |
protected Map<String,ResourceAdapter> |
managedResources |
protected Map<String,ResourceServerAdapter> |
managedResourceServers |
protected Map<String,ScopeAdapter> |
managedScopes |
protected StoreFactoryCacheSession.PolicyCache |
policyCache |
protected StoreFactoryCacheSession.ResourceCache |
resourceCache |
protected StoreFactoryCacheSession.ResourceServerCache |
resourceServerCache |
protected StoreFactoryCacheSession.ScopeCache |
scopeCache |
protected KeycloakSession |
session |
protected boolean |
setRollbackOnly |
protected long |
startupRevision |
protected boolean |
transactionActive |
| Constructor and Description |
|---|
StoreFactoryCacheSession(StoreFactoryCacheManager cache,
KeycloakSession session) |
protected static final org.jboss.logging.Logger logger
protected StoreFactoryCacheManager cache
protected boolean transactionActive
protected boolean setRollbackOnly
protected Map<String,ResourceServerAdapter> managedResourceServers
protected Map<String,ScopeAdapter> managedScopes
protected Map<String,ResourceAdapter> managedResources
protected Map<String,PolicyAdapter> managedPolicies
protected Set<InvalidationEvent> invalidationEvents
protected boolean clearAll
protected final long startupRevision
protected StoreFactory delegate
protected KeycloakSession session
protected StoreFactoryCacheSession.ResourceServerCache resourceServerCache
protected StoreFactoryCacheSession.ScopeCache scopeCache
protected StoreFactoryCacheSession.ResourceCache resourceCache
protected StoreFactoryCacheSession.PolicyCache policyCache
public StoreFactoryCacheSession(StoreFactoryCacheManager cache, KeycloakSession session)
public ResourceServerStore getResourceServerStore()
getResourceServerStore in interface StoreFactorypublic ScopeStore getScopeStore()
getScopeStore in interface StoreFactorypublic ResourceStore getResourceStore()
getResourceStore in interface StoreFactorypublic PolicyStore getPolicyStore()
getPolicyStore in interface StoreFactoryprotected void runInvalidations()
public long getStartupRevision()
public boolean isInvalid(String id)
public void registerResourceServerInvalidation(String id, String clientId)
public void registerScopeInvalidation(String id, String name, String serverId)
public void registerResourceInvalidation(String id, String name, String type, String uri, Set<String> scopes, String serverId, String owner)
public void registerPolicyInvalidation(String id, String name, Set<String> resources, Set<String> scopes, String serverId)
public ResourceServerStore getResourceServerStoreDelegate()
public ScopeStore getScopeStoreDelegate()
public ResourceStore getResourceStoreDelegate()
public PolicyStore getPolicyStoreDelegate()
public static String getResourceServerByClientCacheKey(String clientId)
public static String getResourceByNameCacheKey(String name, String serverId)
public static String getResourceByOwnerCacheKey(String owner, String serverId)
public static String getResourceByTypeCacheKey(String type, String serverId)
public static String getResourceByScopeCacheKey(String scopeId, String serverId)
public StoreFactory getDelegate()
Copyright © 2017 JBoss by Red Hat. All rights reserved.