Class StoreFactoryCacheSession
- java.lang.Object
- 
- org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession
 
- 
- All Implemented Interfaces:
- StoreFactory,- CachedStoreFactoryProvider,- Provider
 
 public class StoreFactoryCacheSession extends Object implements CachedStoreFactoryProvider - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classStoreFactoryCacheSession.PermissionTicketCacheprotected classStoreFactoryCacheSession.PolicyCacheprotected classStoreFactoryCacheSession.ResourceCacheprotected classStoreFactoryCacheSession.ResourceServerCacheprotected classStoreFactoryCacheSession.ScopeCache
 - 
Field Summary
 - 
Constructor SummaryConstructors Constructor Description StoreFactoryCacheSession(StoreFactoryCacheManager cache, KeycloakSession session)
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
loggerprotected static final org.jboss.logging.Logger logger 
 - 
cacheprotected StoreFactoryCacheManager cache 
 - 
transactionActiveprotected boolean transactionActive 
 - 
setRollbackOnlyprotected boolean setRollbackOnly 
 - 
managedResourceServersprotected Map<String,ResourceServerAdapter> managedResourceServers 
 - 
managedScopesprotected Map<String,ScopeAdapter> managedScopes 
 - 
managedResourcesprotected Map<String,ResourceAdapter> managedResources 
 - 
managedPoliciesprotected Map<String,PolicyAdapter> managedPolicies 
 - 
managedPermissionTicketsprotected Map<String,PermissionTicketAdapter> managedPermissionTickets 
 - 
invalidationEventsprotected Set<InvalidationEvent> invalidationEvents 
 - 
clearAllprotected boolean clearAll 
 - 
startupRevisionprotected final long startupRevision 
 - 
delegateprotected StoreFactory delegate 
 - 
sessionprotected KeycloakSession session 
 - 
resourceServerCacheprotected StoreFactoryCacheSession.ResourceServerCache resourceServerCache 
 - 
scopeCacheprotected StoreFactoryCacheSession.ScopeCache scopeCache 
 - 
resourceCacheprotected StoreFactoryCacheSession.ResourceCache resourceCache 
 - 
policyCacheprotected StoreFactoryCacheSession.PolicyCache policyCache 
 - 
permissionTicketCacheprotected StoreFactoryCacheSession.PermissionTicketCache permissionTicketCache 
 
- 
 - 
Constructor Detail- 
StoreFactoryCacheSessionpublic StoreFactoryCacheSession(StoreFactoryCacheManager cache, KeycloakSession session) 
 
- 
 - 
Method Detail- 
getResourceServerStorepublic ResourceServerStore getResourceServerStore() Description copied from interface:StoreFactoryReturns aResourceServerStore.- Specified by:
- getResourceServerStorein interface- StoreFactory
- Returns:
- the resource server store
 
 - 
getScopeStorepublic ScopeStore getScopeStore() Description copied from interface:StoreFactoryReturns aScopeStore.- Specified by:
- getScopeStorein interface- StoreFactory
- Returns:
- the scope store
 
 - 
getResourceStorepublic ResourceStore getResourceStore() Description copied from interface:StoreFactoryReturns aResourceStore.- Specified by:
- getResourceStorein interface- StoreFactory
- Returns:
- the resource store
 
 - 
getPolicyStorepublic PolicyStore getPolicyStore() Description copied from interface:StoreFactoryReturns aPolicyStore.- Specified by:
- getPolicyStorein interface- StoreFactory
- Returns:
- the policy store
 
 - 
getPermissionTicketStorepublic PermissionTicketStore getPermissionTicketStore() Description copied from interface:StoreFactoryReturns aPermissionTicketStore.- Specified by:
- getPermissionTicketStorein interface- StoreFactory
- Returns:
- the permission ticket store
 
 - 
setReadOnlypublic void setReadOnly(boolean readOnly) Description copied from interface:StoreFactorySets whether or not changes to instances returned from this factory are supported. Once marked as read-only, any attempt to change state will throw anIllegalStateException.- Specified by:
- setReadOnlyin interface- StoreFactory
- Parameters:
- readOnly- if true, changes are not supported
 
 - 
isReadOnlypublic boolean isReadOnly() Description copied from interface:StoreFactoryIndicates if instances returned from storage are read-only.- Specified by:
- isReadOnlyin interface- StoreFactory
- Returns:
- if true, instances only support reads.
 
 - 
runInvalidationsprotected void runInvalidations() 
 - 
getStartupRevisionpublic long getStartupRevision() 
 - 
isInvalidpublic boolean isInvalid(String id) 
 - 
registerResourceServerInvalidationpublic void registerResourceServerInvalidation(String id) 
 - 
registerScopeInvalidationpublic void registerScopeInvalidation(String id, String name, String serverId) 
 - 
registerResourceInvalidationpublic void registerResourceInvalidation(String id, String name, String type, Set<String> uris, Set<String> scopes, String serverId, String owner) 
 - 
registerPolicyInvalidationpublic void registerPolicyInvalidation(String id, String name, Set<String> resources, Set<String> scopes, String defaultResourceType, String serverId) 
 - 
registerPermissionTicketInvalidationpublic void registerPermissionTicketInvalidation(String id, String owner, String requester, String resource, String resourceName, String scope, String serverId) 
 - 
getResourceServerStoreDelegatepublic ResourceServerStore getResourceServerStoreDelegate() 
 - 
getScopeStoreDelegatepublic ScopeStore getScopeStoreDelegate() 
 - 
getResourceStoreDelegatepublic ResourceStore getResourceStoreDelegate() 
 - 
getPolicyStoreDelegatepublic PolicyStore getPolicyStoreDelegate() 
 - 
getPermissionTicketStoreDelegatepublic PermissionTicketStore getPermissionTicketStoreDelegate() 
 - 
getResourceServerByClientCacheKeypublic static String getResourceServerByClientCacheKey(String clientId) 
 - 
getResourceByNameCacheKeypublic static String getResourceByNameCacheKey(String name, String ownerId, String serverId) 
 - 
getResourceByOwnerCacheKeypublic static String getResourceByOwnerCacheKey(String owner, String serverId) 
 - 
getResourceByTypeCacheKeypublic static String getResourceByTypeCacheKey(String type, String serverId) 
 - 
getResourceByTypeCacheKeypublic static String getResourceByTypeCacheKey(String type, String owner, String serverId) 
 - 
getResourceByTypeInstanceCacheKeypublic static String getResourceByTypeInstanceCacheKey(String type, String serverId) 
 - 
getResourceByUriCacheKeypublic static String getResourceByUriCacheKey(String uri, String serverId) 
 - 
getResourceByScopeCacheKeypublic static String getResourceByScopeCacheKey(String scopeId, String serverId) 
 - 
getPolicyByResourceScopepublic static String getPolicyByResourceScope(String scope, String resourceId, String serverId) 
 - 
getPermissionTicketByResourcepublic static String getPermissionTicketByResource(String resourceId, String serverId) 
 - 
getPermissionTicketByScopepublic static String getPermissionTicketByScope(String scopeId, String serverId) 
 - 
getPermissionTicketByGrantedpublic static String getPermissionTicketByGranted(String userId, String serverId) 
 - 
getPermissionTicketByResourceNameAndGrantedpublic static String getPermissionTicketByResourceNameAndGranted(String resourceName, String userId, String serverId) 
 - 
getPermissionTicketByOwnerpublic static String getPermissionTicketByOwner(String owner, String serverId) 
 - 
getDelegatepublic StoreFactory getDelegate() 
 
- 
 
-