org.fcrepo.server.security.xacml.pdp.data
Class XPathPolicyIndex

java.lang.Object
  extended by org.fcrepo.server.security.xacml.pdp.data.PolicyIndexBase
      extended by org.fcrepo.server.security.xacml.pdp.data.XPathPolicyIndex
All Implemented Interfaces:
PolicyIndex
Direct Known Subclasses:
DbXmlPolicyIndex, ExistPolicyIndex

public abstract class XPathPolicyIndex
extends PolicyIndexBase
implements PolicyIndex

Abstract class for XPath-based policy index Provides helper functions for generating xpath queries, decomposing request details etc

Version:
$Id$
Author:
Stephen Bayliss

Field Summary
 
Fields inherited from class org.fcrepo.server.security.xacml.pdp.data.PolicyIndexBase
ACTION_KEY, ENVIRONMENT_KEY, indexed, indexMap, m_policyReader, METADATA_POLICY_NS, namespaces, RESOURCE_KEY, SUBJECT_KEY
 
Fields inherited from interface org.fcrepo.server.security.xacml.pdp.data.PolicyIndex
XACML_RESOURCE_ID, XACML20_POLICY_NS
 
Constructor Summary
protected XPathPolicyIndex(PolicyReader policyReader)
           
 
Method Summary
protected static String getXpath(Map<String,Set<AttributeBean>> attributeMap)
          Creates an XPath query from the attributes
static Map<String,String> getXpathVariables(Map<String,Set<AttributeBean>> attributeMap)
          Get XPath variables to use against an xpath query
 
Methods inherited from class org.fcrepo.server.security.xacml.pdp.data.PolicyIndexBase
getAttributeMap, handleDocument, makeComponents, setActionAttributes, setAttributeMap, setEnvironmentAttributes, setResourceAttributes, setSubjectAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fcrepo.server.security.xacml.pdp.data.PolicyIndex
addPolicy, clear, contains, deletePolicy, getPolicies, getPolicy, updatePolicy
 

Constructor Detail

XPathPolicyIndex

protected XPathPolicyIndex(PolicyReader policyReader)
                    throws PolicyIndexException
Throws:
PolicyIndexException
Method Detail

getXpathVariables

public static Map<String,String> getXpathVariables(Map<String,Set<AttributeBean>> attributeMap)
Get XPath variables to use against an xpath query

Parameters:
attributeMap -
Returns:
a map of variable name / variable values

getXpath

protected static String getXpath(Map<String,Set<AttributeBean>> attributeMap)
Creates an XPath query from the attributes

Parameters:
attributeMap - attributes from request
r - number of resource-id values
Returns:


Copyright © 2012 DuraSpace. All Rights Reserved.