@Scope(value="prototype")
@Path(value="/{path: .*}/fcr:tx")
public class FedoraTransactions
extends FedoraBaseResource
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Session |
session |
idTranslatorbinaryService, containerService, eventBus, nodeService, pidMinter, sessions, uriInfo, versionService| Constructor and Description |
|---|
FedoraTransactions() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
commit(String externalPath)
Commit a transaction resource
|
javax.ws.rs.core.Response |
createTransaction(String externalPath,
javax.servlet.http.HttpServletRequest req)
Create a new transaction resource and add it to the registry
|
javax.ws.rs.core.Response |
rollback(String externalPath)
Rollback a transaction
|
protected javax.jcr.Session |
session() |
getResourceFromPath, setUpJMSBaseURIs, translatortoPath@Inject protected javax.jcr.Session session
public FedoraTransactions()
@POST public javax.ws.rs.core.Response createTransaction(@PathParam(value="path") String externalPath, @Context javax.servlet.http.HttpServletRequest req) throws URISyntaxException
externalPath - URISyntaxException@POST @Path(value="fcr:commit") public javax.ws.rs.core.Response commit(@PathParam(value="path") String externalPath)
externalPath - @POST @Path(value="fcr:rollback") public javax.ws.rs.core.Response rollback(@PathParam(value="path") String externalPath)
protected javax.jcr.Session session()
session in class FedoraBaseResourceCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.