|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.security.xacml.util.RelationshipResolverImpl
public class RelationshipResolverImpl
A RelationshipResolver that resolves relationships via
Management.getRelationships(org.fcrepo.server.Context, String, String).
| Constructor Summary | |
|---|---|
RelationshipResolverImpl()
|
|
RelationshipResolverImpl(Map<String,String> options)
Constructor that takes a map of parent-child predicates (relationships). |
|
| Method Summary | |
|---|---|
String |
buildRESTParentHierarchy(String pid)
Generates a REST based representation of an object and its parents. |
Set<String> |
getAttributesFromQuery(String query,
String queryLang,
String variable)
Get attributes defined by a query. |
protected PID |
getNormalizedPID(String pid)
Returns a PID object for the requested String. |
Set<String> |
getParents(String pid)
|
Map<String,Set<String>> |
getRelationships(String subject)
Retrieves the relationships for this subject. |
Map<String,Set<String>> |
getRelationships(String subject,
String relationship)
Retrieves relationships for this subject, relationship and object. |
protected String |
getSubjectURI(String subject)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelationshipResolverImpl()
public RelationshipResolverImpl(Map<String,String> options)
ContextHandlerImpl builds the map from the relationship-resolver
section of config-melcoe-pep.xml (in WEB-INF/classes).
options -
MelcoePDPException| Method Detail |
|---|
public String buildRESTParentHierarchy(String pid)
throws MelcoeXacmlException
RelationshipResolver
buildRESTParentHierarchy in interface RelationshipResolverpid - the pid whose parents we need to find
MelcoeXacmlException
public Set<String> getParents(String pid)
throws MelcoeXacmlException
MelcoeXacmlException
protected String getSubjectURI(String subject)
throws MalformedPIDException
MalformedPIDException
public Map<String,Set<String>> getRelationships(String subject)
throws MelcoeXacmlException
RelationshipResolver
getRelationships in interface RelationshipResolversubject - the subject to return relationships for - either ns:pid,
ns:pid/datastream or the info:fedora/ forms
MelcoeXacmlException
public Map<String,Set<String>> getRelationships(String subject,
String relationship)
throws MelcoeXacmlException
RelationshipResolver
getRelationships in interface RelationshipResolverMelcoeXacmlExceptionprotected PID getNormalizedPID(String pid)
pid -
public Set<String> getAttributesFromQuery(String query,
String queryLang,
String variable)
throws MelcoeXacmlException
RelationshipResolver
getAttributesFromQuery in interface RelationshipResolverquery - The query to runqueryLang - Language of the query - itql, sparql, spovariable - - the output variable to return (for spo, specify "s", "p" or "o")
MelcoeXacmlException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||