public class JPAStoreFactory extends Object implements StoreFactory
Constructor and Description |
---|
JPAStoreFactory(javax.persistence.EntityManager entityManager,
AuthorizationProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
PermissionTicketStore |
getPermissionTicketStore()
Returns a
PermissionTicketStore . |
PolicyStore |
getPolicyStore()
Returns a
PolicyStore . |
ResourceServerStore |
getResourceServerStore()
Returns a
ResourceServerStore . |
ResourceStore |
getResourceStore()
Returns a
ResourceStore . |
ScopeStore |
getScopeStore()
Returns a
ScopeStore . |
boolean |
isReadOnly()
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.
|
public JPAStoreFactory(javax.persistence.EntityManager entityManager, AuthorizationProvider provider)
public PolicyStore getPolicyStore()
StoreFactory
PolicyStore
.getPolicyStore
in interface StoreFactory
public ResourceServerStore getResourceServerStore()
StoreFactory
ResourceServerStore
.getResourceServerStore
in interface StoreFactory
public ResourceStore getResourceStore()
StoreFactory
ResourceStore
.getResourceStore
in interface StoreFactory
public ScopeStore getScopeStore()
StoreFactory
ScopeStore
.getScopeStore
in interface StoreFactory
public PermissionTicketStore getPermissionTicketStore()
StoreFactory
PermissionTicketStore
.getPermissionTicketStore
in interface StoreFactory
public void setReadOnly(boolean readOnly)
StoreFactory
IllegalStateException
.setReadOnly
in interface StoreFactory
readOnly
- if true, changes are not supportedpublic boolean isReadOnly()
StoreFactory
isReadOnly
in interface StoreFactory
Copyright © 2021 JBoss by Red Hat. All rights reserved.