public class HttpGraphSubjects extends Object implements GraphSubjects
| Modifier and Type | Field and Description |
|---|---|
protected javax.ws.rs.core.UriBuilder |
nodesBuilder |
static String |
TX_PREFIX |
static String |
WORKSPACE_PREFIX |
| Constructor and Description |
|---|
HttpGraphSubjects(javax.jcr.Session session,
Class<?> relativeTo,
javax.ws.rs.core.UriInfo uris)
Build HTTP graph subjects relative to the given JAX-RS resource, using the UriInfo provided.
|
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.Resource |
getContext() |
com.hp.hpl.jena.rdf.model.Resource |
getGraphSubject(javax.jcr.Node node) |
com.hp.hpl.jena.rdf.model.Resource |
getGraphSubject(String absPath) |
javax.jcr.Node |
getNodeFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject) |
String |
getPathFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject) |
protected String |
getPathFromGraphSubject(String subjectUri)
Gets a path from the graph subject's URI.
|
protected Map<String,String> |
getPathMap(javax.jcr.Node node) |
boolean |
isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject) |
public static final String WORKSPACE_PREFIX
public static final String TX_PREFIX
protected final javax.ws.rs.core.UriBuilder nodesBuilder
public HttpGraphSubjects(javax.jcr.Session session,
Class<?> relativeTo,
javax.ws.rs.core.UriInfo uris)
relativeTo - uris - public com.hp.hpl.jena.rdf.model.Resource getGraphSubject(String absPath) throws javax.jcr.RepositoryException
getGraphSubject in interface GraphSubjectsjavax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Resource getContext()
getContext in interface GraphSubjectspublic com.hp.hpl.jena.rdf.model.Resource getGraphSubject(javax.jcr.Node node)
throws javax.jcr.RepositoryException
getGraphSubject in interface GraphSubjectsjavax.jcr.RepositoryExceptionpublic javax.jcr.Node getNodeFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
throws javax.jcr.RepositoryException
getNodeFromGraphSubject in interface GraphSubjectsjavax.jcr.RepositoryExceptionpublic String getPathFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject) throws javax.jcr.RepositoryException
getPathFromGraphSubject in interface GraphSubjectsjavax.jcr.RepositoryExceptionprotected String getPathFromGraphSubject(@NotNull String subjectUri) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic boolean isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
isFedoraGraphSubject in interface GraphSubjectsCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.