Class TransactionResource

    • 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
    • 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)