org.jboss.security.xacml.locators
Class AbstractJBossPolicyLocator

java.lang.Object
  extended by org.jboss.security.xacml.locators.AbstractJBossPolicyLocator
All Implemented Interfaces:
AbstractLocator, ContextMapOp, PolicyLocator
Direct Known Subclasses:
JBossPolicyLocator, JBossPolicySetLocator

public abstract class AbstractJBossPolicyLocator
extends Object
implements PolicyLocator

Base Class for Policy Locators

Since:
Jul 6, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Field Summary
protected  Map<String,Object> map
           
protected  List<Option> options
           
protected  Set<XACMLPolicy> policies
           
 
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
AbstractJBossPolicyLocator()
           
 
Method Summary
<T> T
get(String key)
          Get an element from the map
<T> void
set(String key, T obj)
          Set an object on the map
 void setOptions(List<Option> theoptions)
          Set a list of options on the locator
abstract  void setPolicies(Set<XACMLPolicy> policies)
          Set of policies that this locator is able to return
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

protected List<Option> options

map

protected Map<String,Object> map

policies

protected Set<XACMLPolicy> policies
Constructor Detail

AbstractJBossPolicyLocator

public AbstractJBossPolicyLocator()
Method Detail

setOptions

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

Specified by:
setOptions in interface AbstractLocator
See Also:
AbstractLocator.setOptions(List)

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
See Also:
ContextMapOp.get(String)

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
See Also:
ContextMapOp.set(String, Object)

setPolicies

public abstract void setPolicies(Set<XACMLPolicy> policies)
Description copied from interface: PolicyLocator
Set of policies that this locator is able to return

Specified by:
setPolicies in interface PolicyLocator
See Also:
PolicyLocator.setPolicies(Set)


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