Package org.keycloak.authorization.store
Interface StoreFactory
- 
- All Superinterfaces:
- Provider
 - All Known Subinterfaces:
- CachedStoreFactoryProvider
 - All Known Implementing Classes:
- JPAStoreFactory,- MapAuthorizationStore,- StoreFactoryCacheSession
 
 public interface StoreFactory extends Provider A factory for the different types of storages that manage the persistence of the domain model types. Implementations of this interface are usually related with the creation of those storage types accordingly with a specific persistence mechanism such as relational and NoSQL databases, filesystem, etc. - Author:
- Pedro Igor
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description PermissionTicketStoregetPermissionTicketStore()Returns aPermissionTicketStore.PolicyStoregetPolicyStore()Returns aPolicyStore.ResourceServerStoregetResourceServerStore()Returns aResourceServerStore.ResourceStoregetResourceStore()Returns aResourceStore.ScopeStoregetScopeStore()Returns aScopeStore.booleanisReadOnly()Indicates if instances returned from storage are read-only.voidsetReadOnly(boolean readOnly)Sets whether or not changes to instances returned from this factory are supported.
 
- 
- 
- 
Method Detail- 
getResourceStoreResourceStore getResourceStore() Returns aResourceStore.- Returns:
- the resource store
 
 - 
getResourceServerStoreResourceServerStore getResourceServerStore() Returns aResourceServerStore.- Returns:
- the resource server store
 
 - 
getScopeStoreScopeStore getScopeStore() Returns aScopeStore.- Returns:
- the scope store
 
 - 
getPolicyStorePolicyStore getPolicyStore() Returns aPolicyStore.- Returns:
- the policy store
 
 - 
getPermissionTicketStorePermissionTicketStore getPermissionTicketStore() Returns aPermissionTicketStore.- Returns:
- the permission ticket store
 
 - 
setReadOnlyvoid setReadOnly(boolean readOnly) Sets 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.- Parameters:
- readOnly- if true, changes are not supported
 
 - 
isReadOnlyboolean isReadOnly() Indicates if instances returned from storage are read-only.- Returns:
- if true, instances only support reads.
 
 
- 
 
-