org.fcrepo.server.security.xacml.util
Class RelationshipResolverBase

java.lang.Object
  extended by org.fcrepo.server.security.xacml.util.RelationshipResolverBase
All Implemented Interfaces:
RelationshipResolver
Direct Known Subclasses:
RELSRelationshipResolver, RIRelationshipResolver

public abstract class RelationshipResolverBase
extends Object
implements RelationshipResolver


Field Summary
protected  List<String> childRelationships
           
protected static String DEFAULT_RELATIONSHIP
           
protected  List<String> parentRelationships
           
protected static String REPOSITORY
          Designates the repository itself.
 
Constructor Summary
RelationshipResolverBase(Map<String,String> options)
          Constructor that takes a map of parent-child predicates (relationships).
 
Method Summary
protected  String getFedoraResourceURI(String res)
          given either a ns:pid/ds identifier or an info:fedora/ URI form of the same return the URI form, validating the PID part.
 
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.util.RelationshipResolver
buildRESTParentHierarchy, getAttributesFromQuery, getRelationships, getRelationships
 

Field Detail

REPOSITORY

protected static final String REPOSITORY
Designates the repository itself. Policies can apply to the repository, but it is a special case, as it is not represented by a PID, and by definition, has no parents.

See Also:
Constant Field Values

DEFAULT_RELATIONSHIP

protected static String DEFAULT_RELATIONSHIP

parentRelationships

protected final List<String> parentRelationships

childRelationships

protected final List<String> childRelationships
Constructor Detail

RelationshipResolverBase

public RelationshipResolverBase(Map<String,String> options)
Constructor that takes a map of parent-child predicates (relationships). ContextHandlerImpl builds the map from the relationship-resolver section of config-melcoe-pep.xml (in WEB-INF/classes).

Parameters:
options -
Throws:
MelcoePDPException
Method Detail

getFedoraResourceURI

protected String getFedoraResourceURI(String res)
given either a ns:pid/ds identifier or an info:fedora/ URI form of the same return the URI form, validating the PID part. Returns null if the argument was invalid/could not be validated/converted

Parameters:
res - identifier for fedora resource
Returns:
URI form


Copyright © 2012 DuraSpace. All Rights Reserved.