Class MapAuthorizationStore
java.lang.Object
org.keycloak.models.map.authorization.MapAuthorizationStore
- All Implemented Interfaces:
StoreFactory
,Provider
- Author:
- mhajas
-
Constructor Summary
ConstructorDescriptionMapAuthorizationStore
(MapStorage<MapPermissionTicketEntity, PermissionTicket> permissionTicketStore, MapStorage<MapPolicyEntity, Policy> policyStore, MapStorage<MapResourceServerEntity, ResourceServer> resourceServerStore, MapStorage<MapResourceEntity, Resource> resourceStore, MapStorage<MapScopeEntity, Scope> scopeStore, AuthorizationProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns aPermissionTicketStore
.Returns aPolicyStore
.Returns aResourceServerStore
.Returns aResourceStore
.Returns aScopeStore
.boolean
Indicates if instances returned from storage are read-only.void
setReadOnly
(boolean readOnly) Sets whether or not changes to instances returned from this factory are supported.
-
Constructor Details
-
MapAuthorizationStore
public MapAuthorizationStore(MapStorage<MapPermissionTicketEntity, PermissionTicket> permissionTicketStore, MapStorage<MapPolicyEntity, Policy> policyStore, MapStorage<MapResourceServerEntity, ResourceServer> resourceServerStore, MapStorage<MapResourceEntity, Resource> resourceStore, MapStorage<MapScopeEntity, Scope> scopeStore, AuthorizationProvider provider)
-
-
Method Details
-
getResourceStore
Description copied from interface:StoreFactory
Returns aResourceStore
.- Specified by:
getResourceStore
in interfaceStoreFactory
- Returns:
- the resource store
-
getResourceServerStore
Description copied from interface:StoreFactory
Returns aResourceServerStore
.- Specified by:
getResourceServerStore
in interfaceStoreFactory
- Returns:
- the resource server store
-
getScopeStore
Description copied from interface:StoreFactory
Returns aScopeStore
.- Specified by:
getScopeStore
in interfaceStoreFactory
- Returns:
- the scope store
-
getPolicyStore
Description copied from interface:StoreFactory
Returns aPolicyStore
.- Specified by:
getPolicyStore
in interfaceStoreFactory
- Returns:
- the policy store
-
getPermissionTicketStore
Description copied from interface:StoreFactory
Returns aPermissionTicketStore
.- Specified by:
getPermissionTicketStore
in interfaceStoreFactory
- Returns:
- the permission ticket store
-
setReadOnly
public void setReadOnly(boolean readOnly) Description copied from interface:StoreFactory
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
.- Specified by:
setReadOnly
in interfaceStoreFactory
- Parameters:
readOnly
- if true, changes are not supported
-
isReadOnly
public boolean isReadOnly()Description copied from interface:StoreFactory
Indicates if instances returned from storage are read-only.- Specified by:
isReadOnly
in interfaceStoreFactory
- Returns:
- if true, instances only support reads.
-
close
public void close()
-