org.fcrepo.server.security.xacml.pdp.data
Class XPathPolicyIndex
java.lang.Object
org.fcrepo.server.security.xacml.pdp.data.PolicyIndexBase
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathPolicyIndex
protected XPathPolicyIndex(PolicyReader policyReader)
throws PolicyIndexException
- Throws:
PolicyIndexException
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 requestr - number of resource-id values
- Returns:
Copyright © 2012 DuraSpace. All Rights Reserved.