@Scope(value="request") @Path(value="/{path: .*}/fcr:versions") public class FedoraVersioning extends FedoraBaseResource
Modifier and Type | Field and Description |
---|---|
protected String |
externalPath |
protected javax.ws.rs.core.Request |
request |
protected FedoraResource |
resource |
protected javax.servlet.http.HttpServletResponse |
servletResponse |
protected javax.jcr.Session |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
idTranslator
binaryService, containerService, eventBus, nodeService, pidMinter, sessions, versionService
Constructor and Description |
---|
FedoraVersioning()
Default JAX-RS entry point
|
FedoraVersioning(String externalPath)
Create a new FedoraNodes instance for a given path
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addVersion(String slug)
Create a new version checkpoint and tag it with the given label.
|
javax.ws.rs.core.Response |
disableVersioning()
Disable versioning
|
javax.ws.rs.core.Response |
enableVersioning()
Enable versioning
|
RdfStream |
getVersionList()
Get the list of versions for the object
|
protected FedoraResource |
resource() |
protected javax.jcr.Session |
session() |
getResourceFromPath, setUpJMSBaseURIs, translator
toPath
@Inject protected javax.jcr.Session session
@Context protected javax.ws.rs.core.Request request
@Context protected javax.servlet.http.HttpServletResponse servletResponse
@Context protected javax.ws.rs.core.UriInfo uriInfo
@PathParam(value="path") protected String externalPath
protected FedoraResource resource
public FedoraVersioning()
public FedoraVersioning(String externalPath)
externalPath
- @PUT public javax.ws.rs.core.Response enableVersioning()
@DELETE public javax.ws.rs.core.Response disableVersioning()
@POST public javax.ws.rs.core.Response addVersion(@HeaderParam(value="Slug") String slug) 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 RdfStream getVersionList()
javax.jcr.RepositoryException
protected FedoraResource resource()
protected javax.jcr.Session session()
session
in class FedoraBaseResource
Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.