org.fcrepo.server.security.xacml.pdp.finder.attribute
Class DesignatorAttributeFinderModule

java.lang.Object
  extended by com.sun.xacml.finder.AttributeFinderModule
      extended by org.fcrepo.server.security.AttributeFinderModule
          extended by org.fcrepo.server.security.xacml.pdp.finder.attribute.DesignatorAttributeFinderModule
Direct Known Subclasses:
DOTriplesAttributeFinder, FedoraRIAttributeFinder, LDAPAttributeFinder, RITriplesAttributeFinder

public abstract class DesignatorAttributeFinderModule
extends AttributeFinderModule


Field Summary
protected  Map<Integer,Map<String,Attribute>> m_attributes
           
 
Fields inherited from class org.fcrepo.server.security.AttributeFinderModule
attributesDenied, STRING_ATTRIBUTE_URI
 
Constructor Summary
DesignatorAttributeFinderModule()
           
 
Method Summary
protected  boolean canHandleAdhoc()
           
protected  boolean emptyAttributeMap()
           
protected  Object getAttributeLocally(int designatorType, String attributeId, URI resourceCategory, com.sun.xacml.EvaluationCtx context)
          Will not be called in this implementation, since findAttribute is overridden
 Set<Integer> getSupportedDesignatorTypes()
          Returns a Set with a single Integer specifying that environment attributes are supported by this module.
 boolean isDesignatorSupported()
          Returns true always because this module supports designators.
 void setActionAttributes(Map<String,Attribute> attributes)
           
protected  void setAttributes(int designator, Map<String,Attribute> attributes)
           
 void setEnvironmentAttributes(Map<String,Attribute> attributes)
           
 void setResourceAttributes(Map<String,Attribute> attributes)
           
 void setSubjectAttributes(Map<String,Attribute> attributes)
           
 
Methods inherited from class org.fcrepo.server.security.AttributeFinderModule
findAttribute, getAttributeFromEvaluationResult, getAttributeIdUri, getAttributeType, getAttributeTypeUri, hasAttribute, iAm, registerAttribute, registerSupportedDesignatorType, setInstantiatedOk
 
Methods inherited from class com.sun.xacml.finder.AttributeFinderModule
findAttribute, getIdentifier, getSupportedIds, invalidateCache, isSelectorSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_attributes

protected final Map<Integer,Map<String,Attribute>> m_attributes
Constructor Detail

DesignatorAttributeFinderModule

public DesignatorAttributeFinderModule()
Method Detail

setActionAttributes

public void setActionAttributes(Map<String,Attribute> attributes)

setEnvironmentAttributes

public void setEnvironmentAttributes(Map<String,Attribute> attributes)

setResourceAttributes

public void setResourceAttributes(Map<String,Attribute> attributes)

setSubjectAttributes

public void setSubjectAttributes(Map<String,Attribute> attributes)

setAttributes

protected void setAttributes(int designator,
                             Map<String,Attribute> attributes)

emptyAttributeMap

protected boolean emptyAttributeMap()

isDesignatorSupported

public boolean isDesignatorSupported()
Returns true always because this module supports designators.

Overrides:
isDesignatorSupported in class AttributeFinderModule
Returns:
true always

getSupportedDesignatorTypes

public Set<Integer> getSupportedDesignatorTypes()
Returns a Set with a single Integer specifying that environment attributes are supported by this module.

Overrides:
getSupportedDesignatorTypes in class AttributeFinderModule
Returns:
a Set with AttributeDesignator.ENVIRONMENT_TARGET included

canHandleAdhoc

protected boolean canHandleAdhoc()
Specified by:
canHandleAdhoc in class AttributeFinderModule

getAttributeLocally

protected Object getAttributeLocally(int designatorType,
                                     String attributeId,
                                     URI resourceCategory,
                                     com.sun.xacml.EvaluationCtx context)
Will not be called in this implementation, since findAttribute is overridden

Specified by:
getAttributeLocally in class AttributeFinderModule


Copyright © 2012 DuraSpace. All Rights Reserved.