org.jboss.security.xacml.locators
Class ResourceLocator

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.finder.ResourceFinderModule
      extended by org.jboss.security.xacml.locators.ResourceLocator
All Implemented Interfaces:
AbstractLocator, ContextMapOp

public class ResourceLocator
extends ResourceFinderModule
implements AbstractLocator

Resource Finder Module The following methods need to be overridden in your locator

Since:
Mar 19, 2009
Author:
Anil.Saldhana@redhat.com
See Also:
ResourceFinderModule.findChildResources(org.jboss.security.xacml.sunxacml.attr.AttributeValue, org.jboss.security.xacml.sunxacml.EvaluationCtx), ResourceFinderModule.findDescendantResources(org.jboss.security.xacml.sunxacml.attr.AttributeValue, org.jboss.security.xacml.sunxacml.EvaluationCtx)

Field Summary
 
Fields inherited from interface org.jboss.security.xacml.interfaces.AbstractLocator
ATTRIBUTE_DESIGNATOR_INTEGER_TAG, ATTRIBUTE_DESIGNATOR_SUPPORT_TAG, ATTRIBUTE_SELECTOR_SUPPORT_TAG, ATTRIBUTE_SUPPORTED_ID_TAG, IDENTIFIER_TAG, RESOURCE_CHILD_SUPPORTED_TAG, RESOURCE_DESCENDANT_SUPPORTED_TAG
 
Constructor Summary
ResourceLocator()
           
 
Method Summary
<T> T
get(String key)
          Get an element from the map
 String getIdentifier()
          Returns this module's identifier.
 boolean isChildSupported()
          Returns true if this module supports finding resources with the "Children" scope.
 boolean isDescendantSupported()
          Returns true if this module supports finding resources with the "Descendants" scope.
<T> void
set(String key, T obj)
          Set an object on the map
 void setOptions(List<Option> options)
          Set a list of options on the locator
 
Methods inherited from class org.jboss.security.xacml.sunxacml.finder.ResourceFinderModule
findChildResources, findChildResources, findDescendantResources, findDescendantResources, invalidateCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLocator

public ResourceLocator()
Method Detail

setOptions

public void setOptions(List<Option> options)
Description copied from interface: AbstractLocator
Set a list of options on the locator

Specified by:
setOptions in interface AbstractLocator

get

public <T> T get(String key)
Description copied from interface: ContextMapOp
Get an element from the map

Specified by:
get in interface ContextMapOp
Type Parameters:
T - object from the map
Parameters:
key - Key
Returns:
object from the map

set

public <T> void set(String key,
                    T obj)
Description copied from interface: ContextMapOp
Set an object on the map

Specified by:
set in interface ContextMapOp
Parameters:
key - Key for the map
obj - Object to be placed

getIdentifier

public String getIdentifier()
Description copied from class: ResourceFinderModule
Returns this module's identifier. A module does not need to provide a unique identifier, but it is a good idea, especially in support of management software. Common identifiers would be the full package and class name (the default if this method isn't overridden), just the class name, or some other well-known string that identifies this class.

Overrides:
getIdentifier in class ResourceFinderModule
Returns:
this module's identifier

isChildSupported

public boolean isChildSupported()
Description copied from class: ResourceFinderModule
Returns true if this module supports finding resources with the "Children" scope. By default this method returns false.

Overrides:
isChildSupported in class ResourceFinderModule
Returns:
true if the module supports the Children scope

isDescendantSupported

public boolean isDescendantSupported()
Description copied from class: ResourceFinderModule
Returns true if this module supports finding resources with the "Descendants" scope. By default this method returns false.

Overrides:
isDescendantSupported in class ResourceFinderModule
Returns:
true if the module supports the Descendants scope


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.