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()
StoreFactoryPolicyStore.getPolicyStore in interface StoreFactorypublic ResourceServerStore getResourceServerStore()
StoreFactoryResourceServerStore.getResourceServerStore in interface StoreFactorypublic ResourceStore getResourceStore()
StoreFactoryResourceStore.getResourceStore in interface StoreFactorypublic ScopeStore getScopeStore()
StoreFactoryScopeStore.getScopeStore in interface StoreFactorypublic PermissionTicketStore getPermissionTicketStore()
StoreFactoryPermissionTicketStore.getPermissionTicketStore in interface StoreFactorypublic void setReadOnly(boolean readOnly)
StoreFactoryIllegalStateException.setReadOnly in interface StoreFactoryreadOnly - if true, changes are not supportedpublic boolean isReadOnly()
StoreFactoryisReadOnly in interface StoreFactoryCopyright © 2021 JBoss by Red Hat. All rights reserved.