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

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
              extended by org.fcrepo.server.security.xacml.pdp.finder.attribute.RITriplesAttributeFinder

public class RITriplesAttributeFinder
extends DesignatorAttributeFinderModule


Field Summary
 
Fields inherited from class org.fcrepo.server.security.xacml.pdp.finder.attribute.DesignatorAttributeFinderModule
m_attributes
 
Fields inherited from class org.fcrepo.server.security.AttributeFinderModule
attributesDenied, STRING_ATTRIBUTE_URI
 
Constructor Summary
RITriplesAttributeFinder(ResourceIndex resourceIndex)
           
 
Method Summary
 com.sun.xacml.cond.EvaluationResult findAttribute(URI attributeType, URI attributeId, URI issuer, URI subjectCategory, com.sun.xacml.EvaluationCtx context, int designatorType)
          Used to get an attribute.
 Set<Integer> getSupportedDesignatorTypes()
          Returns a Set with a single Integer specifying that environment attributes are supported by this module.
 void init()
           
 boolean isDesignatorSupported()
          Returns true always because this module supports designators.
 
Methods inherited from class org.fcrepo.server.security.xacml.pdp.finder.attribute.DesignatorAttributeFinderModule
canHandleAdhoc, emptyAttributeMap, getAttributeLocally, setActionAttributes, setAttributes, setEnvironmentAttributes, setResourceAttributes, setSubjectAttributes
 
Methods inherited from class org.fcrepo.server.security.AttributeFinderModule
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
 

Constructor Detail

RITriplesAttributeFinder

public RITriplesAttributeFinder(ResourceIndex resourceIndex)
Method Detail

init

public void init()
          throws AttributeFinderException
Throws:
AttributeFinderException

isDesignatorSupported

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

Overrides:
isDesignatorSupported in class DesignatorAttributeFinderModule
Returns:
true always

getSupportedDesignatorTypes

public Set<Integer> getSupportedDesignatorTypes()
Description copied from class: DesignatorAttributeFinderModule
Returns a Set with a single Integer specifying that environment attributes are supported by this module.

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

findAttribute

public com.sun.xacml.cond.EvaluationResult findAttribute(URI attributeType,
                                                         URI attributeId,
                                                         URI issuer,
                                                         URI subjectCategory,
                                                         com.sun.xacml.EvaluationCtx context,
                                                         int designatorType)
Used to get an attribute. If one of those values isn't being asked for, or if the types are wrong, then an empty bag is returned.

Overrides:
findAttribute in class AttributeFinderModule
Parameters:
attributeType - the datatype of the attributes to find, which must be time, date, or dateTime for this module to resolve a value
attributeId - the identifier of the attributes to find, which must be one of the three ENVIRONMENT_* fields for this module to resolve a value
issuer - the issuer of the attributes, or null if unspecified
subjectCategory - the category of the attribute or null, which ignored since this only handles non-subjects
context - the representation of the request data
designatorType - the type of designator, which must be ENVIRONMENT_TARGET for this module to resolve a value
Returns:
the result of attribute retrieval, which will be a bag with a single attribute, an empty bag, or an error


Copyright © 2012 DuraSpace. All Rights Reserved.