org.jboss.security.acl.config
Class ACLDefinition

java.lang.Object
  extended by org.jboss.security.acl.config.ACLDefinition
All Implemented Interfaces:
org.jboss.xb.binding.GenericValueContainer

public class ACLDefinition
extends Object
implements org.jboss.xb.binding.GenericValueContainer

A container for holding the contents parsed from a <acl-definition> section of jboss-acl.xml.

Author:
Stefan Guilhen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.xb.binding.GenericValueContainer
org.jboss.xb.binding.GenericValueContainer.FACTORY
 
Constructor Summary
ACLDefinition()
           
 
Method Summary
 void addACLEntry(Object entry)
           Adds a parsed ACLEntry to the list of entries of this ACLDefinition.
 void addChild(QName name, Object value)
           
 boolean equals(Object obj)
           
 String getBaseResource()
           Obtains the configured <acl-definition> base-resource, as per the extends attribute in the XML file.
 Set<org.jboss.security.acl.ACLEntry> getEntries()
           Obtains the ACL entries that have been configured in this ACL definition.
 String getResource()
           Obtains the configured <acl-definition> resource.
 Class<?> getTargetClass()
           
 int hashCode()
           
 Object instantiate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACLDefinition

public ACLDefinition()
Method Detail

addChild

public void addChild(QName name,
                     Object value)
Specified by:
addChild in interface org.jboss.xb.binding.GenericValueContainer

instantiate

public Object instantiate()
Specified by:
instantiate in interface org.jboss.xb.binding.GenericValueContainer

getTargetClass

public Class<?> getTargetClass()
Specified by:
getTargetClass in interface org.jboss.xb.binding.GenericValueContainer

addACLEntry

public void addACLEntry(Object entry)

Adds a parsed ACLEntry to the list of entries of this ACLDefinition.

Parameters:
entry - the ACLEntry to be added.

getResource

public String getResource()

Obtains the configured <acl-definition> resource.

Returns:
a String containing the resource as configured in the XML file.

getBaseResource

public String getBaseResource()

Obtains the configured <acl-definition> base-resource, as per the extends attribute in the XML file.

Returns:
a String containing the base-resource as configured in the XML file, or null if no base resource is available.

getEntries

public Set<org.jboss.security.acl.ACLEntry> getEntries()

Obtains the ACL entries that have been configured in this ACL definition.

Returns:
a List<ACLEntry> containing the configured entries.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.