Class JPAAuthorizationStoreFactory
java.lang.Object
org.keycloak.authorization.jpa.store.JPAAuthorizationStoreFactory
- All Implemented Interfaces:
AuthorizationStoreFactory
,ProviderFactory<StoreFactory>
- Author:
- Pedro Igor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RealmModel
Legacy store doesn't store realm id for any entity and no method there is using new introduced RealmModel parameter. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
create
(KeycloakSession session) getId()
void
init
(Config.Scope config) int
order()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.authorization.store.AuthorizationStoreFactory
postInit, registerSynchronizationListeners
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata
-
Field Details
-
NULL_REALM
Legacy store doesn't store realm id for any entity and no method there is using new introduced RealmModel parameter. The parameter was introduced for usage only in the new storage. Therefore, in some cases we may break our rule specified in JavaDoc and usenull
value as parameter that otherwise cannot benull
. We need to be careful and place such value only to a method call that cannot end up in the new store because it would end withNullPointerException
. To mark all places where we do this, we use this variable so it is easily searchable.
-
-
Constructor Details
-
JPAAuthorizationStoreFactory
public JPAAuthorizationStoreFactory()
-
-
Method Details
-
create
- Specified by:
create
in interfaceProviderFactory<StoreFactory>
-
init
- Specified by:
init
in interfaceProviderFactory<StoreFactory>
-
close
public void close()- Specified by:
close
in interfaceProviderFactory<StoreFactory>
-
getId
- Specified by:
getId
in interfaceProviderFactory<StoreFactory>
-
order
public int order()- Specified by:
order
in interfaceProviderFactory<StoreFactory>
-