@Scope(value="request")
@Path(value="/{path: .*}/fcr:versions/{labelAndOptionalPathIntoVersion: .*}")
public class FedoraVersions
extends ContentExposingResource
| Modifier and Type | Field and Description |
|---|---|
protected FedoraResource |
baseResource |
protected String |
externalPath |
protected String |
label |
protected String |
path |
protected String |
pathIntoVersion |
protected String |
pathListIntoVersion |
protected FedoraResource |
resource |
protected javax.jcr.Session |
session |
MESSAGE_EXTERNAL_BODY, prefer, request, servletResponseidTranslatorbinaryService, containerService, eventBus, nodeService, pidMinter, sessions, uriInfo, versionService| Constructor and Description |
|---|
FedoraVersions()
Default JAX-RS entry point
|
FedoraVersions(String path,
String label,
String pathIntoVersion)
Create a new FedoraNodes instance for a given path
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResourceHttpHeaders(FedoraResource resource)
Add any resource-specific headers to the response
|
protected String |
externalPath() |
javax.ws.rs.core.Response |
getVersion(String rangeValue)
Retrieve a version of an object.
|
javax.ws.rs.core.Response |
removeVersion()
Removes the version specified by the label.
|
protected FedoraResource |
resource() |
javax.ws.rs.core.Response |
revertToVersion()
Reverts the resource at the given path to the version specified by
the label.
|
protected javax.jcr.Session |
session() |
protected String |
unversionedResourcePath() |
addCacheControlHeaders, checkCacheControlHeaders, evaluateRequestPreconditions, getBinaryContent, getContent, getResourceTriples, getSimpleContentType, getTriples, getTriples, getUri, isRdfContentType, patchResourcewithSparql, replaceResourceBinaryWithStream, replaceResourceWithStreamgetResourceFromPath, setUpJMSBaseURIs, translatortoPath@Inject protected javax.jcr.Session session
@PathParam(value="path") protected String externalPath
@PathParam(value="labelAndOptionalPathIntoVersion") protected String pathListIntoVersion
protected String pathIntoVersion
protected FedoraResource resource
protected FedoraResource baseResource
public FedoraVersions()
public FedoraVersions(String path, String label, String pathIntoVersion)
path - public javax.ws.rs.core.Response revertToVersion() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@DELETE public javax.ws.rs.core.Response removeVersion() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@GET
@Produces(value={"text/turtle;qs=10","application/ld+json;qs=8","text/rdf+n3","text/n3","application/rdf+xml","application/n-triples","application/xml","text/plain","application/x-turtle","text/html","application/xhtml+xml","*/*"})
public javax.ws.rs.core.Response getVersion(@HeaderParam(value="Range")
String rangeValue)
throws IOException
IOExceptionprotected String unversionedResourcePath() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected FedoraResource resource()
resource in class ContentExposingResourceprotected void addResourceHttpHeaders(FedoraResource resource)
ContentExposingResourceaddResourceHttpHeaders in class ContentExposingResourceprotected String externalPath()
externalPath in class ContentExposingResourceprotected javax.jcr.Session session()
session in class FedoraBaseResourceCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.