public class JPAPersistenceStrategy extends Object implements ACLPersistenceStrategy
Implementation of ACLPersistenceStrategy that uses the Java Persistence API (JPA) to
persist the ACLs.
| Constructor and Description |
|---|
JPAPersistenceStrategy() |
JPAPersistenceStrategy(ACLResourceFactory resourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
ACL |
createACL(Resource resource) |
ACL |
createACL(Resource resource,
Collection<ACLEntry> entries) |
ACL |
getACL(Resource resource) |
Collection<ACL> |
getACLs() |
boolean |
removeACL(ACL acl) |
boolean |
removeACL(Resource resource) |
boolean |
updateACL(ACL acl) |
public JPAPersistenceStrategy()
public JPAPersistenceStrategy(ACLResourceFactory resourceFactory)
public ACL createACL(Resource resource)
createACL in interface ACLPersistenceStrategypublic ACL createACL(Resource resource, Collection<ACLEntry> entries)
createACL in interface ACLPersistenceStrategypublic boolean removeACL(ACL acl)
removeACL in interface ACLPersistenceStrategypublic boolean removeACL(Resource resource)
removeACL in interface ACLPersistenceStrategypublic ACL getACL(Resource resource)
getACL in interface ACLPersistenceStrategypublic Collection<ACL> getACLs()
getACLs in interface ACLPersistenceStrategypublic boolean updateACL(ACL acl)
updateACL in interface ACLPersistenceStrategyCopyright © 2018 JBoss by Red Hat. All rights reserved.