org.acegisecurity.intercept
Interface ObjectDefinitionSource

All Known Subinterfaces:
FilterInvocationDefinition, FilterInvocationDefinitionSource, MethodDefinitionSource
All Known Implementing Classes:
AbstractFilterInvocationDefinitionSource, AbstractMethodDefinitionSource, FilterInvocationDefinitionDecorator, MethodDefinitionAttributes, MethodDefinitionMap, PathBasedFilterInvocationDefinitionMap, RegExpBasedFilterInvocationDefinitionMap

public interface ObjectDefinitionSource

Implemented by classes that store and can identify the ConfigAttributeDefinition that applies to a given secure object invocation.

Version:
$Id: ObjectDefinitionSource.java 1784 2007-02-24 21:00:24Z luke_t $
Author:
Ben Alex

Method Summary
 ConfigAttributeDefinition getAttributes(java.lang.Object object)
          Accesses the ConfigAttributeDefinition that applies to a given secure object.
 java.util.Iterator getConfigAttributeDefinitions()
          If available, all of the ConfigAttributeDefinitions defined by the implementing class.
 boolean supports(java.lang.Class clazz)
          Indicates whether the ObjectDefinitionSource implementation is able to provide ConfigAttributeDefinitions for the indicated secure object type.
 

Method Detail

getAttributes

ConfigAttributeDefinition getAttributes(java.lang.Object object)
                                        throws java.lang.IllegalArgumentException
Accesses the ConfigAttributeDefinition that applies to a given secure object.

Returns null if no ConfigAttribiteDefinition applies.

Parameters:
object - the object being secured
Returns:
the ConfigAttributeDefinition that applies to the passed object
Throws:
java.lang.IllegalArgumentException - if the passed object is not of a type supported by the ObjectDefinitionSource implementation

getConfigAttributeDefinitions

java.util.Iterator getConfigAttributeDefinitions()
If available, all of the ConfigAttributeDefinitions defined by the implementing class.

This is used by the AbstractSecurityInterceptor to perform startup time validation of each ConfigAttribute configured against it.

Returns:
an iterator over all the ConfigAttributeDefinitions or null if unsupported

supports

boolean supports(java.lang.Class clazz)
Indicates whether the ObjectDefinitionSource implementation is able to provide ConfigAttributeDefinitions for the indicated secure object type.

Parameters:
clazz - the class that is being queried
Returns:
true if the implementation can process the indicated class


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