@Scope(value="prototype") @Path(value="/{path: .*}/fcr:tx") public class FedoraTransactions extends FedoraBaseResource
idTranslator, session
binaryService, containerService, defaultPidMinter, eventBus, headers, namespaceService, 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
|
asNode, getBaseUrlProperty, getResourceFromPath, session, setUpJMSInfo, translator
toPath
public FedoraTransactions()
@POST public javax.ws.rs.core.Response createTransaction(@PathParam(value="path") String externalPath, @Context javax.servlet.http.HttpServletRequest req) throws URISyntaxException
externalPath
- the external pathreq
- the http servlet requestURISyntaxException
- if URI syntax exception occurred@POST @Path(value="fcr:commit") public javax.ws.rs.core.Response commit(@PathParam(value="path") String externalPath)
externalPath
- the external pathCopyright © 2013–2016 DuraSpace, Inc.. All rights reserved.