org.jboss.security.plugins.acl
Class PolicyRegistrationStrategy

java.lang.Object
  extended by org.jboss.security.plugins.acl.PolicyRegistrationStrategy
All Implemented Interfaces:
ACLPersistenceStrategy

public class PolicyRegistrationStrategy
extends Object
implements ACLPersistenceStrategy

This is a special implementation of ACLPersistenceStrategy that looks up the ACLs in the PolicyRegistration. This is used to get hold of the ACLs that have been specified in the jboss-acl-policy.xml configuration file and registered with the PolicyRegistration implementation.

Author:
Stefan Guilhen

Constructor Summary
PolicyRegistrationStrategy()
           Creates an instance of PolicyRegistrationStrategy.
PolicyRegistrationStrategy(org.jboss.security.authorization.PolicyRegistration registration)
           Creates an instance of PolicyRegistrationStrategy with the specified PolicyRegistration as a delegate.
 
Method Summary
 ACL createACL(org.jboss.security.authorization.Resource resource)
           
 ACL createACL(org.jboss.security.authorization.Resource resource, Collection<ACLEntry> entries)
           
 ACL getACL(org.jboss.security.authorization.Resource resource)
           
 Collection<ACL> getACLs()
           
 boolean removeACL(ACL acl)
           
 boolean removeACL(org.jboss.security.authorization.Resource resource)
           
 boolean updateACL(ACL acl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyRegistrationStrategy

public PolicyRegistrationStrategy()

Creates an instance of PolicyRegistrationStrategy.


PolicyRegistrationStrategy

public PolicyRegistrationStrategy(org.jboss.security.authorization.PolicyRegistration registration)

Creates an instance of PolicyRegistrationStrategy with the specified PolicyRegistration as a delegate.

Parameters:
registration - the PolicyRegistration instance to be used as this strategy's delegate.
Method Detail

createACL

public ACL createACL(org.jboss.security.authorization.Resource resource)
Specified by:
createACL in interface ACLPersistenceStrategy

createACL

public ACL createACL(org.jboss.security.authorization.Resource resource,
                     Collection<ACLEntry> entries)
Specified by:
createACL in interface ACLPersistenceStrategy

getACL

public ACL getACL(org.jboss.security.authorization.Resource resource)
Specified by:
getACL in interface ACLPersistenceStrategy

getACLs

public Collection<ACL> getACLs()
Specified by:
getACLs in interface ACLPersistenceStrategy

removeACL

public boolean removeACL(ACL acl)
Specified by:
removeACL in interface ACLPersistenceStrategy

removeACL

public boolean removeACL(org.jboss.security.authorization.Resource resource)
Specified by:
removeACL in interface ACLPersistenceStrategy

updateACL

public boolean updateACL(ACL acl)
Specified by:
updateACL in interface ACLPersistenceStrategy


Copyright © 2009 JBoss Inc.. All Rights Reserved.