Class TransactionInternalResource


  • @Path("/collect-internal/v1/transactions")
    public class TransactionInternalResource
    extends java.lang.Object
    • 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
    • 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 Id
        queryDsl - as JsonNode
        Returns:
        an archive unit result list with inherited rules