Class StoreFactoryCacheSession
java.lang.Object
org.keycloak.models.cache.infinispan.authorization.StoreFactoryCacheSession
- All Implemented Interfaces:
- StoreFactory,- CachedStoreFactoryProvider,- Provider
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classprotected class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StoreFactoryCacheManagerprotected StoreFactoryprotected Set<InvalidationEvent>protected static final org.jboss.logging.Loggerprotected Map<String,PermissionTicketAdapter> protected Map<String,PolicyAdapter> protected Map<String,ResourceAdapter> protected Map<String,ResourceServerAdapter> protected Map<String,ScopeAdapter> protected StoreFactoryCacheSession.PolicyCacheprotected StoreFactoryCacheSession.ResourceCacheprotected StoreFactoryCacheSession.ScopeCacheprotected KeycloakSessionprotected booleanprotected final longprotected boolean
- 
Constructor SummaryConstructorsConstructorDescriptionStoreFactoryCacheSession(StoreFactoryCacheManager cache, KeycloakSession session) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()static StringgetPermissionTicketByGranted(String userId, String serverId) static StringgetPermissionTicketByOwner(String owner, String serverId) static StringgetPermissionTicketByResource(String resourceId, String serverId) static StringgetPermissionTicketByResourceNameAndGranted(String resourceName, String userId, String serverId) static StringgetPermissionTicketByScope(String scopeId, String serverId) Returns aPermissionTicketStore.static StringgetPolicyByNameCacheKey(String name, String serverId) static StringgetPolicyByResource(String resourceId, String serverId) static StringgetPolicyByResourceScope(String scope, String resourceId, String serverId) static StringgetPolicyByResourceType(String type, String serverId) static StringgetPolicyByScope(String scope, String serverId) Returns aPolicyStore.static StringgetResourceByNameCacheKey(String name, String ownerId, String serverId) static StringgetResourceByOwnerCacheKey(String owner, String serverId) static StringgetResourceByScopeCacheKey(String scopeId, String serverId) static StringgetResourceByTypeCacheKey(String type, String serverId) static StringgetResourceByTypeCacheKey(String type, String owner, String serverId) static StringgetResourceByTypeInstanceCacheKey(String type, String serverId) static StringgetResourceByUriCacheKey(String uri, String serverId) static StringgetResourceServerByClientCacheKey(String clientId) Returns aResourceServerStore.Returns aResourceStore.static StringgetScopeByNameCacheKey(String name, String serverId) Returns aScopeStore.booleanIndicates if instances returned from storage are read-only.voidregisterPermissionTicketInvalidation(String id, String owner, String requester, String resource, String resourceName, String scope, String serverId) voidregisterPolicyInvalidation(String id, String name, Set<String> resources, Set<String> scopes, String defaultResourceType, String serverId) voidregisterResourceInvalidation(String id, String name, String type, Set<String> uris, Set<String> scopes, String serverId, String owner) voidvoidregisterScopeInvalidation(String id, String name, String serverId) protected voidvoidsetReadOnly(boolean readOnly) Sets whether or not changes to instances returned from this factory are supported.
- 
Field Details- 
loggerprotected static final org.jboss.logging.Logger logger
- 
cache
- 
transactionActiveprotected boolean transactionActive
- 
setRollbackOnlyprotected boolean setRollbackOnly
- 
managedResourceServers
- 
managedScopes
- 
managedResources
- 
managedPolicies
- 
managedPermissionTickets
- 
invalidations
- 
invalidationEvents
- 
startupRevisionprotected final long startupRevision
- 
delegate
- 
session
- 
resourceServerCache
- 
scopeCache
- 
resourceCache
- 
policyCache
- 
permissionTicketCache
 
- 
- 
Constructor Details- 
StoreFactoryCacheSession
 
- 
- 
Method Details- 
getResourceServerStoreDescription copied from interface:StoreFactoryReturns aResourceServerStore.- Specified by:
- getResourceServerStorein interface- StoreFactory
- Returns:
- the resource server store
 
- 
getScopeStoreDescription copied from interface:StoreFactoryReturns aScopeStore.- Specified by:
- getScopeStorein interface- StoreFactory
- Returns:
- the scope store
 
- 
getResourceStoreDescription copied from interface:StoreFactoryReturns aResourceStore.- Specified by:
- getResourceStorein interface- StoreFactory
- Returns:
- the resource store
 
- 
getPolicyStoreDescription copied from interface:StoreFactoryReturns aPolicyStore.- Specified by:
- getPolicyStorein interface- StoreFactory
- Returns:
- the policy store
 
- 
getPermissionTicketStoreDescription 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.
 
- 
closepublic void close()
- 
runInvalidationsprotected void runInvalidations()
- 
registerResourceServerInvalidation
- 
registerScopeInvalidation
- 
registerResourceInvalidation
- 
registerPolicyInvalidation
- 
registerPermissionTicketInvalidation
- 
getResourceServerStoreDelegate
- 
getScopeStoreDelegate
- 
getResourceStoreDelegate
- 
getPolicyStoreDelegate
- 
getPermissionTicketStoreDelegate
- 
getResourceServerByClientCacheKey
- 
getScopeByNameCacheKey
- 
getResourceByNameCacheKey
- 
getResourceByOwnerCacheKey
- 
getResourceByTypeCacheKey
- 
getResourceByTypeCacheKey
- 
getResourceByTypeInstanceCacheKey
- 
getResourceByUriCacheKey
- 
getResourceByScopeCacheKey
- 
getPolicyByNameCacheKey
- 
getPolicyByResource
- 
getPolicyByResourceType
- 
getPolicyByScope
- 
getPolicyByResourceScope
- 
getPermissionTicketByResource
- 
getPermissionTicketByScope
- 
getPermissionTicketByGranted
- 
getPermissionTicketByResourceNameAndGranted
- 
getPermissionTicketByOwner
- 
getDelegate
 
-