Class TransactionInternalResource
- java.lang.Object
-
- fr.gouv.vitam.collect.internal.rest.TransactionInternalResource
-
@Path("/collect-internal/v1/transactions") public class TransactionInternalResource extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SIP_GENERATED_MANIFEST_CAN_T_BE_NULL
-
Constructor Summary
Constructors Constructor Description TransactionInternalResource(TransactionService transactionService, SipService sipService, MetadataService metadataService, FluxService fluxService, ProjectService projectService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
abortTransaction(java.lang.String transactionId)
javax.ws.rs.core.Response
attachVitamOperationId(java.lang.String transactionId, java.lang.String operationId)
javax.ws.rs.core.Response
changeTransactionStatus(java.lang.String transactionId, TransactionStatus transactionStatus)
javax.ws.rs.core.Response
closeTransaction(java.lang.String transactionId)
javax.ws.rs.core.Response
deleteTransactionById(java.lang.String transactionId)
javax.ws.rs.core.Response
generateSip(java.lang.String transactionId)
javax.ws.rs.core.Response
getTransactionById(java.lang.String transactionId)
javax.ws.rs.core.Response
reopenTransaction(java.lang.String transactionId)
javax.ws.rs.core.Response
selectUnits(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode jsonQuery)
select Unitjavax.ws.rs.core.Response
selectUnitsWithInheritedRules(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode queryDsl)
Select units with inherited rulesjavax.ws.rs.core.Response
updateTransaction(TransactionDto transactionDto)
javax.ws.rs.core.Response
updateUnits(java.lang.String transactionId, java.io.InputStream is)
javax.ws.rs.core.Response
uploadArchiveUnit(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode unitJsonNode)
javax.ws.rs.core.Response
uploadTransactionZip(java.lang.String transactionId, java.io.InputStream inputStreamObject)
-
-
-
Field Detail
-
SIP_GENERATED_MANIFEST_CAN_T_BE_NULL
public static final java.lang.String SIP_GENERATED_MANIFEST_CAN_T_BE_NULL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransactionInternalResource
public TransactionInternalResource(TransactionService transactionService, SipService sipService, MetadataService metadataService, FluxService fluxService, ProjectService projectService)
-
-
Method Detail
-
getTransactionById
@Path("/{transactionId}") @GET @Produces("application/json") public javax.ws.rs.core.Response getTransactionById(@PathParam("transactionId") java.lang.String transactionId)
-
updateTransaction
@PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateTransaction(TransactionDto transactionDto)
-
deleteTransactionById
@Path("/{transactionId}") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteTransactionById(@PathParam("transactionId") java.lang.String transactionId)
-
uploadArchiveUnit
@Path("/{transactionId}/units") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response uploadArchiveUnit(@PathParam("transactionId") java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode unitJsonNode)
-
selectUnits
@Path("/{transactionId}/units") @GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response selectUnits(@PathParam("transactionId") java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode jsonQuery)
select Unit- Parameters:
jsonQuery
- as String { $query : query}
-
closeTransaction
@Path("/{transactionId}/close") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response closeTransaction(@PathParam("transactionId") java.lang.String transactionId)
-
abortTransaction
@Path("/{transactionId}/abort") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response abortTransaction(@PathParam("transactionId") java.lang.String transactionId)
-
reopenTransaction
@Path("/{transactionId}/reopen") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response reopenTransaction(@PathParam("transactionId") java.lang.String transactionId)
-
generateSip
@Path("/{transactionId}/send") @POST @Produces("application/octet-stream") public javax.ws.rs.core.Response generateSip(@PathParam("transactionId") java.lang.String transactionId) throws CollectInternalException
- Throws:
CollectInternalException
-
updateUnits
@Path("/{transactionId}/units") @PUT @Consumes("application/octet-stream") @Produces("application/json") public javax.ws.rs.core.Response updateUnits(@PathParam("transactionId") java.lang.String transactionId, java.io.InputStream is)
-
uploadTransactionZip
@Path("/{transactionId}/upload") @POST @Consumes("application/zip") @Produces("application/json") public javax.ws.rs.core.Response uploadTransactionZip(@PathParam("transactionId") java.lang.String transactionId, java.io.InputStream inputStreamObject)
-
changeTransactionStatus
@Path("/{transactionId}/status/{transactionStatus}") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response changeTransactionStatus(@PathParam("transactionId") java.lang.String transactionId, @PathParam("transactionStatus") TransactionStatus transactionStatus)
-
attachVitamOperationId
@Path("/{transactionId}/operation-id/{operationId}") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response attachVitamOperationId(@PathParam("transactionId") java.lang.String transactionId, @PathParam("operationId") java.lang.String operationId)
-
selectUnitsWithInheritedRules
@GET @Path("/{transactionId}/unitsWithInheritedRules") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response selectUnitsWithInheritedRules(@PathParam("transactionId") java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode queryDsl)
Select units with inherited rules- Parameters:
transactionId
- as transaction IdqueryDsl
- as JsonNode- Returns:
- an archive unit result list with inherited rules
-
-