Class TransactionResource
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
-
- fr.gouv.vitam.collect.internal.resource.TransactionResource
-
@Path("/collect/v1") public class TransactionResource extends ApplicationStatusResource
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ERROR_WHILE_TRYING_TO_SAVE_UNITS
static java.lang.String
SIP_GENERATED_MANIFEST_CAN_T_BE_NULL
static java.lang.String
SIP_INGEST_OPERATION_CAN_T_PROVIDE_A_NULL_OPERATION_GUIID
-
Fields inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
STATUS_URL, TENANTS_URL
-
-
Constructor Summary
Constructors Constructor Description TransactionResource(CollectService collectService, TransactionService transactionService, SipService sipService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
closeTransaction(java.lang.String transactionId)
javax.ws.rs.core.Response
generateAndSendSip(java.lang.String transactionId)
javax.ws.rs.core.Response
initTransaction(TransactionDto transactionDto)
javax.ws.rs.core.Response
upload(java.lang.String unitId, java.lang.String usageString, java.lang.Integer version, java.io.InputStream uploadedInputStream)
javax.ws.rs.core.Response
uploadArchiveUnit(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode unitJsonNode)
javax.ws.rs.core.Response
uploadObjectGroup(java.lang.String unitId, java.lang.String usageString, java.lang.Integer version, ObjectGroupDto objectGroupDto)
-
Methods inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
getServerTenants, status
-
-
-
-
Field Detail
-
ERROR_WHILE_TRYING_TO_SAVE_UNITS
public static final java.lang.String ERROR_WHILE_TRYING_TO_SAVE_UNITS
- See Also:
- Constant Field Values
-
SIP_INGEST_OPERATION_CAN_T_PROVIDE_A_NULL_OPERATION_GUIID
public static final java.lang.String SIP_INGEST_OPERATION_CAN_T_PROVIDE_A_NULL_OPERATION_GUIID
- See Also:
- Constant Field Values
-
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
-
TransactionResource
public TransactionResource(CollectService collectService, TransactionService transactionService, SipService sipService)
-
-
Method Detail
-
initTransaction
@Path("/transactions") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response initTransaction(TransactionDto transactionDto)
-
uploadArchiveUnit
@Path("/transactions/{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)
-
uploadObjectGroup
@Path("/units/{unitId}/objects/{usage}/{version}") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response uploadObjectGroup(@PathParam("unitId") java.lang.String unitId, @PathParam("usage") java.lang.String usageString, @PathParam("version") java.lang.Integer version, ObjectGroupDto objectGroupDto)
-
upload
@Path("/units/{unitId}/objects/{usage}/{version}/binary") @POST @Consumes("application/octet-stream") @Produces("application/json") public javax.ws.rs.core.Response upload(@PathParam("unitId") java.lang.String unitId, @PathParam("usage") java.lang.String usageString, @PathParam("version") java.lang.Integer version, java.io.InputStream uploadedInputStream) throws CollectException
- Throws:
CollectException
-
closeTransaction
@Path("/transactions/{transactionId}/close") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response closeTransaction(@PathParam("transactionId") java.lang.String transactionId)
-
generateAndSendSip
@Path("/transactions/{transactionId}/send") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response generateAndSendSip(@PathParam("transactionId") java.lang.String transactionId)
-
-