org.acegisecurity
Class ConfigAttributeDefinition

java.lang.Object
  extended by org.acegisecurity.ConfigAttributeDefinition
All Implemented Interfaces:
java.io.Serializable

public class ConfigAttributeDefinition
extends java.lang.Object
implements java.io.Serializable

Holds a group of ConfigAttributes that are associated with a given secure object target.

All the ConfigAttributeDefinitions associated with a given AbstractSecurityInterceptor are stored in an ObjectDefinitionSource.

Version:
$Id: ConfigAttributeDefinition.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex
See Also:
Serialized Form

Constructor Summary
ConfigAttributeDefinition()
           
 
Method Summary
 void addConfigAttribute(ConfigAttribute newConfigAttribute)
          Adds a ConfigAttribute that is related to the secure object method.
 boolean contains(ConfigAttribute configAttribute)
          Indicates whether the specified ConfigAttribute is contained within this ConfigAttributeDefinition.
 boolean equals(java.lang.Object obj)
           
 java.util.Iterator getConfigAttributes()
          Returns an Iterator over all the ConfigAttributes defined by this ConfigAttributeDefinition.
 int size()
          Returns the number of ConfigAttributes defined by this ConfigAttributeDefinition.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigAttributeDefinition

public ConfigAttributeDefinition()
Method Detail

addConfigAttribute

public void addConfigAttribute(ConfigAttribute newConfigAttribute)
Adds a ConfigAttribute that is related to the secure object method.

Parameters:
newConfigAttribute - the new configuration attribute to add

contains

public boolean contains(ConfigAttribute configAttribute)
Indicates whether the specified ConfigAttribute is contained within this ConfigAttributeDefinition.

Parameters:
configAttribute - the attribute to locate
Returns:
true if the specified ConfigAttribute is contained, false otherwise

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getConfigAttributes

public java.util.Iterator getConfigAttributes()
Returns an Iterator over all the ConfigAttributes defined by this ConfigAttributeDefinition.

Allows AccessDecisionManagers and other classes to loop through every configuration attribute associated with a target secure object.

Returns:
all the configuration attributes stored by the instance, or null if an Iterator is unavailable

size

public int size()
Returns the number of ConfigAttributes defined by this ConfigAttributeDefinition.

Returns:
the number of ConfigAttributes contained

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.