Class JPAStoreFactory
java.lang.Object
org.keycloak.authorization.jpa.store.JPAStoreFactory
- All Implemented Interfaces:
StoreFactory,Provider
- Author:
- Pedro Igor
-
Constructor Summary
ConstructorsConstructorDescriptionJPAStoreFactory(jakarta.persistence.EntityManager entityManager, AuthorizationProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns aPermissionTicketStore.Returns aPolicyStore.Returns aResourceServerStore.Returns aResourceStore.Returns aScopeStore.booleanIndicates if instances returned from storage are read-only.voidsetReadOnly(boolean readOnly) Sets whether or not changes to instances returned from this factory are supported.
-
Constructor Details
-
JPAStoreFactory
public JPAStoreFactory(jakarta.persistence.EntityManager entityManager, AuthorizationProvider provider)
-
-
Method Details
-
getPolicyStore
Description copied from interface:StoreFactoryReturns aPolicyStore.- Specified by:
getPolicyStorein interfaceStoreFactory- Returns:
- the policy store
-
getResourceServerStore
Description copied from interface:StoreFactoryReturns aResourceServerStore.- Specified by:
getResourceServerStorein interfaceStoreFactory- Returns:
- the resource server store
-
getResourceStore
Description copied from interface:StoreFactoryReturns aResourceStore.- Specified by:
getResourceStorein interfaceStoreFactory- Returns:
- the resource store
-
getScopeStore
Description copied from interface:StoreFactoryReturns aScopeStore.- Specified by:
getScopeStorein interfaceStoreFactory- Returns:
- the scope store
-
getPermissionTicketStore
Description copied from interface:StoreFactoryReturns aPermissionTicketStore.- Specified by:
getPermissionTicketStorein interfaceStoreFactory- Returns:
- the permission ticket store
-
close
public void close() -
setReadOnly
public 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 interfaceStoreFactory- Parameters:
readOnly- if true, changes are not supported
-
isReadOnly
public boolean isReadOnly()Description copied from interface:StoreFactoryIndicates if instances returned from storage are read-only.- Specified by:
isReadOnlyin interfaceStoreFactory- Returns:
- if true, instances only support reads.
-