public abstract class AbstractFilterInvocationDefinitionSource extends Object implements FilterInvocationDefinitionSource
FilterInvocationDefinitionSource
.Constructor and Description |
---|
AbstractFilterInvocationDefinitionSource() |
Modifier and Type | Method and Description |
---|---|
ConfigAttributeDefinition |
getAttributes(Object object)
Accesses the
ConfigAttributeDefinition that applies to a given secure object. |
abstract ConfigAttributeDefinition |
lookupAttributes(String url)
Performs the actual lookup of the relevant
ConfigAttributeDefinition for the specified
FilterInvocation . |
boolean |
supports(Class clazz)
Indicates whether the
ObjectDefinitionSource implementation is able to provide
ConfigAttributeDefinition s for the indicated secure object type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigAttributeDefinitions
public AbstractFilterInvocationDefinitionSource()
public ConfigAttributeDefinition getAttributes(Object object) throws IllegalArgumentException
ObjectDefinitionSource
ConfigAttributeDefinition
that applies to a given secure object.Returns
null
if no ConfigAttribiteDefinition
applies.
getAttributes
in interface ObjectDefinitionSource
object
- the object being securedConfigAttributeDefinition
that applies to the passed objectIllegalArgumentException
- if the passed object is not of a type supported by the
ObjectDefinitionSource
implementationpublic abstract ConfigAttributeDefinition lookupAttributes(String url)
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)
method.
url
- the URI to retrieve configuration attributes forConfigAttributeDefinition
that applies to the specified FilterInvocation
public boolean supports(Class clazz)
ObjectDefinitionSource
ObjectDefinitionSource
implementation is able to provide
ConfigAttributeDefinition
s for the indicated secure object type.supports
in interface ObjectDefinitionSource
clazz
- the class that is being queriedCopyright © 2004–2019 Interface21, Inc. All rights reserved.