@Scope(value="prototype") @Path(value="/{path: .*}/fcr:tx") public class FedoraTransactions extends FedoraBaseResource
idTranslator, securityContext, session
binaryService, containerService, defaultPidMinter, headers, nodeService, pidMinter, 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)
Create a new transaction resource and add it to the registry
|
javax.ws.rs.core.Response |
rollback(String externalPath)
Rollback a transaction
|
asNode, getResourceFromPath, getUserPrincipal, setUpJMSInfo, translator
toPath
public FedoraTransactions()
@POST public javax.ws.rs.core.Response createTransaction(@PathParam(value="path") String externalPath) throws URISyntaxException
externalPath
- the external pathURISyntaxException
- 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–2018 DuraSpace, Inc.. All rights reserved.