java.lang.Object
org.acegisecurity.intercept.web.AbstractFilterInvocationDefinitionSource
- All Implemented Interfaces:
- FilterInvocationDefinitionSource, org.acegisecurity.intercept.ObjectDefinitionSource
- Direct Known Subclasses:
- PathBasedFilterInvocationDefinitionMap, RegExpBasedFilterInvocationDefinitionMap
- public abstract class AbstractFilterInvocationDefinitionSource
- extends java.lang.Object
- implements FilterInvocationDefinitionSource
Abstract implementation of FilterInvocationDefinitionSource.
- Version:
- $Id: AbstractFilterInvocationDefinitionSource.java,v 1.3 2005/11/17 00:55:50 benalex Exp $
|
Method Summary |
ConfigAttributeDefinition |
getAttributes(java.lang.Object object)
Accesses the ConfigAttributeDefinition that applies to a
given secure object. |
abstract ConfigAttributeDefinition |
lookupAttributes(java.lang.String url)
Performs the actual lookup of the relevant
ConfigAttributeDefinition for the specified
FilterInvocation. |
boolean |
supports(java.lang.Class clazz)
Indicates whether the ObjectDefinitionSource implementation
is able to provide ConfigAttributeDefinitions for the
indicated secure object type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.apache.commons.logging.Log logger
AbstractFilterInvocationDefinitionSource
public AbstractFilterInvocationDefinitionSource()
getAttributes
public ConfigAttributeDefinition getAttributes(java.lang.Object object)
throws java.lang.IllegalArgumentException
- Description copied from interface:
org.acegisecurity.intercept.ObjectDefinitionSource
- Accesses the
ConfigAttributeDefinition that applies to a
given secure object.
Returns null if no ConfigAttribiteDefinition
applies.
- Specified by:
getAttributes in interface org.acegisecurity.intercept.ObjectDefinitionSource
lookupAttributes
public abstract ConfigAttributeDefinition lookupAttributes(java.lang.String url)
- Performs the actual lookup of the relevant
ConfigAttributeDefinition for the specified
FilterInvocation.
Provided so subclasses need only to provide one basic method to properly
interface with the FilterInvocationDefinitionSource.
Public visiblity so that tablibs or other view helper classes can access
the ConfigAttributeDefinition applying to a given URI
pattern without needing to construct a mock
FilterInvocation and retrieving the attibutes via the
getAttributes(Object) 55 method.
supports
public boolean supports(java.lang.Class clazz)
- Description copied from interface:
org.acegisecurity.intercept.ObjectDefinitionSource
- Indicates whether the
ObjectDefinitionSource implementation
is able to provide ConfigAttributeDefinitions for the
indicated secure object type.
- Specified by:
supports in interface org.acegisecurity.intercept.ObjectDefinitionSource