@Test public final void testGetRawObjectGroupLifecyclesByLastPersistedDate() throws InvalidParseOperationException { RawLifecycleByLastPersistedDateRequest request = new RawLifecycleByLastPersistedDateRequest( "2018-02-20T11:14:54.872", "2018-02-20T11:14:54.872", 1000 ); given() .header(GlobalDataRest.X_TENANT_ID, TENANT_ID) .contentType(ContentType.JSON) .body(JsonHandler.toJsonNode(request)) .get(OBJECT_GROUP_LIFECYCLES_RAW_BY_LAST_PERSISTED_DATE_URL) .then() .statusCode(Status.OK.getStatusCode()); }
@GET @Path("/raw/objectgrouplifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response getRawObjectGroupLifecyclesByLastPersistedDate(JsonNode selectionJsonNode) { Status status; try { RawLifecycleByLastPersistedDateRequest request = JsonHandler.getFromJsonNode(selectionJsonNode, RawLifecycleByLastPersistedDateRequest.class); final List<JsonNode> result = logbookLifeCycle .getRawObjectGroupLifecyclesByLastPersistedDate(request.getStartDate(), request.getEndDate(), request.getLimit()); return Response.status(Status.OK) .entity(new RequestResponseOK<JsonNode>() .addAllResults(result) .setHttpCode(Status.OK.getStatusCode())) .build(); } catch (final InvalidParseOperationException exc) { LOGGER.error(exc); status = Status.PRECONDITION_FAILED; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } catch (final IllegalArgumentException exc) { LOGGER.error(exc); status = Status.BAD_REQUEST; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } }
LogbookResource extends ApplicationStatusResource { @GET @Path("/raw/objectgrouplifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response getRawObjectGroupLifecyclesByLastPersistedDate(JsonNode selectionJsonNode) { Status status; try { RawLifecycleByLastPersistedDateRequest request = JsonHandler.getFromJsonNode(selectionJsonNode, RawLifecycleByLastPersistedDateRequest.class); final List<JsonNode> result = logbookLifeCycle .getRawObjectGroupLifecyclesByLastPersistedDate(request.getStartDate(), request.getEndDate(), request.getLimit()); return Response.status(Status.OK) .entity(new RequestResponseOK<JsonNode>() .addAllResults(result) .setHttpCode(Status.OK.getStatusCode())) .build(); } catch (final InvalidParseOperationException exc) { LOGGER.error(exc); status = Status.PRECONDITION_FAILED; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } catch (final IllegalArgumentException exc) { LOGGER.error(exc); status = Status.BAD_REQUEST; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } } }
LogbookResource extends ApplicationStatusResource { @GET @Path("/raw/objectgrouplifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response getRawObjectGroupLifecyclesByLastPersistedDate(JsonNode selectionJsonNode) { Status status; try { RawLifecycleByLastPersistedDateRequest request = JsonHandler.getFromJsonNode(selectionJsonNode, RawLifecycleByLastPersistedDateRequest.class); final List<JsonNode> result = logbookLifeCycle .getRawObjectGroupLifecyclesByLastPersistedDate(request.getStartDate(), request.getEndDate(), request.getLimit()); return Response.status(Status.OK) .entity(new RequestResponseOK<JsonNode>() .addAllResults(result) .setHttpCode(Status.OK.getStatusCode())) .build(); } catch (final InvalidParseOperationException exc) { LOGGER.error(exc); status = Status.PRECONDITION_FAILED; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } catch (final IllegalArgumentException exc) { LOGGER.error(exc); status = Status.BAD_REQUEST; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } } LogbookResource(LogbookConfiguration configuration, OntologyLoader ontologyLoader); }
LogbookResource extends ApplicationStatusResource { @GET @Path("/raw/objectgrouplifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response getRawObjectGroupLifecyclesByLastPersistedDate(JsonNode selectionJsonNode) { Status status; try { RawLifecycleByLastPersistedDateRequest request = JsonHandler.getFromJsonNode(selectionJsonNode, RawLifecycleByLastPersistedDateRequest.class); final List<JsonNode> result = logbookLifeCycle .getRawObjectGroupLifecyclesByLastPersistedDate(request.getStartDate(), request.getEndDate(), request.getLimit()); return Response.status(Status.OK) .entity(new RequestResponseOK<JsonNode>() .addAllResults(result) .setHttpCode(Status.OK.getStatusCode())) .build(); } catch (final InvalidParseOperationException exc) { LOGGER.error(exc); status = Status.PRECONDITION_FAILED; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } catch (final IllegalArgumentException exc) { LOGGER.error(exc); status = Status.BAD_REQUEST; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } } LogbookResource(LogbookConfiguration configuration, OntologyLoader ontologyLoader); @GET @Path("/operations/{id_op}") @Produces(MediaType.APPLICATION_JSON) Response getOperationOnlyById(@PathParam("id_op") String id); @GET @Path("/operations/{id_op}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getOperation(@PathParam("id_op") String id, JsonNode queryDsl); @POST @Path("/operations/{id_op}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response createOperation(@PathParam("id_op") String operationId,
        LogbookOperationParameters operation); @PUT @Path("/operations/{id_op}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateOperation(@PathParam("id_op") String operationId, LogbookOperationParameters operation); @POST @Path("/operations/traceability") @Produces(MediaType.APPLICATION_JSON) Response traceability(@HeaderParam(GlobalDataRest.X_TENANT_ID) String xTenantId); @POST @Path("/operations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response bulkCreateOperation(JsonNode query); @GET @Path("/operations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response selectOperation(JsonNode query); @GET @Path("/slicedOperations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response selectOperationSliced(JsonNode query); @PUT @Path("/operations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) // Note: here let String since we need JsonHandler to parser the object Response updateOperationBulk(String arrayNodeOperations); @GET @Path("/operations/{id_op}/unitlifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode query); @POST @Path("/operations/{id_op}/unitlifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response createUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String unitLcId, LogbookLifeCycleUnitParameters parameters); @POST @Path("/operations/{id_op}/bulklifecycles/unit/temporary") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesUnitTemporaryByOperation(@PathParam("id_op") String operationId,
                                                                 List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @POST @Path("/operations/{id_op}/bulklifecycles/got/temporary") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesGOTTemporaryByOperation(@PathParam("id_op") String operationId,
                                                                List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @POST @Path("/operations/{id_op}/bulklifecycles/unit") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesUnitByOperation(@PathParam("id_op") String operationId,
                                                                 List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @POST @Path("/operations/{id_op}/bulklifecycles/got") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesGOTByOperation(@PathParam("id_op") String operationId,
                                                                List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @PUT @Path("/operations/{id_op}/unitlifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesUnitTemporaryByOperation(@PathParam("id_op") String operationId,
                                                                 @PathParam("id_lc") String unitLcId, @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus,
                                                                 LogbookLifeCycleUnitParameters parameters); @DELETE @Path("/operations/{id_op}/unitlifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response deleteUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String unitLcId); @Deprecated @PUT @Path("/operations/{id_op}/unitlifecycles/{id_lc}/commit") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response commitUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String unitLcId); @POST @Path("/operations/{id_op}/unitlifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response bulkCreateUnit(@PathParam("id_op") String idOp, String array); @PUT @Path("/operations/{id_op}/lifecycles/objectgroup/bulk") @Consumes(MediaType.APPLICATION_JSON) Response createLifeCycleObjectGroupBulk(@PathParam("id_op") String idOp,
        List<LogbookLifeCycleObjectGroupModel> logbookLifeCycleModels); @PUT @Path("/operations/{id_op}/lifecycles/unit/bulk") @Consumes(MediaType.APPLICATION_JSON) Response createLifeCycleUnitBulk(@PathParam("id_op") String idOp,
        List<LogbookLifeCycleUnitModel> logbookLifeCycleModels); @PUT @Path("/operations/{id_op}/unitlifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) // Note: here let String since we need JsonHandler to parser the object Response updateBulkUnit(@PathParam("id_op") String idOp, String arrayNodeLifecycle); @GET @Path("/unitlifecycles/{id_lc}") @Produces(MediaType.APPLICATION_JSON) Response getUnitLifeCycleById(@PathParam("id_lc") String unitLifeCycleId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode queryDsl); @HEAD @Path("/unitlifecycles/{id_lc}") Response getUnitLifeCycleStatus(@PathParam("id_lc") String unitLifeCycleId); @GET @Path("/unitlifecycles") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getUnitLifeCycles(JsonNode queryDsl, @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus); @GET @Path("/raw/unitlifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawUnitLifecyclesByLastPersistedDate(JsonNode selectionJsonNode); @GET @Path("/raw/unitlifecycles/byid/{id}") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawUnitLifeCycleById(@PathParam("id") String id); @GET @Path("/raw/unitlifecycles/byids") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawUnitLifeCycleByIds(List<String> ids); @GET @Path("/operations/{id_op}/objectgrouplifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode query); @POST @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response createObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId, LogbookLifeCycleObjectGroupParameters parameters); @PUT @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus,
        LogbookLifeCycleObjectGroupParameters parameters); @DELETE @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response deleteObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId); @Deprecated @PUT @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}/commit") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response commitObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId); @POST @Path("/operations/{id_op}/objectgrouplifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response bulkCreateObjectGroup(@PathParam("id_op") String idOp, String array); @PUT @Path("/operations/{id_op}/objectgrouplifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) // Note: here let String since we need JsonHandler to parser the object Response updateBulkObjectGroup(@PathParam("id_op") String idOp, String arrayNodeLifecycle); @GET @Path("/objectgrouplifecycles/{id_lc}") @Produces(MediaType.APPLICATION_JSON) Response getObjectGroupLifeCycleById(@PathParam("id_lc") String objectGroupLifeCycleId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode queryDsl); @GET @Path("/objectgrouplifecycles") @Produces(MediaType.APPLICATION_JSON) Response getObjectGroupLifeCycles(@HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus,
        JsonNode queryDsl); @HEAD @Path("/objectgrouplifecycles/{id_lc}") Response getObjectGroupLifeCycleStatus(@PathParam("id_lc") String objectGroupLifeCycleId); @GET @Path("/raw/objectgrouplifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawObjectGroupLifecyclesByLastPersistedDate(JsonNode selectionJsonNode); @GET @Path("/raw/objectgrouplifecycles/byid/{id}") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawObjectGroupLifeCycleById(@PathParam("id") String id); @GET @Path("/raw/objectgrouplifecycles/byids") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawObjectGroupLifeCycleByIds(List<String> ids); @DELETE @Path("/operations/{id_op}/unitlifecycles") Response rollBackUnitLifeCyclesByOperation(@PathParam("id_op") String operationId); @DELETE @Path("/operations/{id_op}/objectgrouplifecycles") Response rollBackObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId); @POST @Path("/lifecycles/units/traceability") @Produces(MediaType.APPLICATION_JSON) Response traceabilityLfcUnit(@HeaderParam(GlobalDataRest.X_TENANT_ID) String xTenantId); @POST @Path("/lifecycles/objectgroups/traceability") @Produces(MediaType.APPLICATION_JSON) Response traceabilityLfcObjectGroup(@HeaderParam(GlobalDataRest.X_TENANT_ID) String xTenantId); @GET @Path("/lifecycles/traceability/check/{id}") @Produces(MediaType.APPLICATION_JSON) Response checkLifecycleTraceabilityStatus(@PathParam("id") String operationId); @Path("/reindex") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response reindex(IndexParameters indexParameters); @Path("/alias") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response changeIndexes(SwitchIndexParameters switchIndexParameters); @Path(AUDIT_TRACEABILITY_URI) @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response launchTraceabilityAudit(AuditLogbookOptions options); @DELETE @Path("/objectgrouplifecycles/bulkDelete") @Produces(MediaType.APPLICATION_JSON) Response deleteObjectGroups(List<String> objectGroupIds); @DELETE @Produces(MediaType.APPLICATION_JSON) @Path("/lifeCycleUnits/bulkDelete") Response deleteUnits(List<String> unitsIdentifier); }
LogbookResource extends ApplicationStatusResource { @GET @Path("/raw/objectgrouplifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response getRawObjectGroupLifecyclesByLastPersistedDate(JsonNode selectionJsonNode) { Status status; try { RawLifecycleByLastPersistedDateRequest request = JsonHandler.getFromJsonNode(selectionJsonNode, RawLifecycleByLastPersistedDateRequest.class); final List<JsonNode> result = logbookLifeCycle .getRawObjectGroupLifecyclesByLastPersistedDate(request.getStartDate(), request.getEndDate(), request.getLimit()); return Response.status(Status.OK) .entity(new RequestResponseOK<JsonNode>() .addAllResults(result) .setHttpCode(Status.OK.getStatusCode())) .build(); } catch (final InvalidParseOperationException exc) { LOGGER.error(exc); status = Status.PRECONDITION_FAILED; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } catch (final IllegalArgumentException exc) { LOGGER.error(exc); status = Status.BAD_REQUEST; return Response.status(status) .entity(new VitamError(status.name()).setHttpCode(status.getStatusCode()) .setContext(LOGBOOK) .setState("code_vitam") .setMessage(status.getReasonPhrase()) .setDescription(exc.getMessage())) .build(); } } LogbookResource(LogbookConfiguration configuration, OntologyLoader ontologyLoader); @GET @Path("/operations/{id_op}") @Produces(MediaType.APPLICATION_JSON) Response getOperationOnlyById(@PathParam("id_op") String id); @GET @Path("/operations/{id_op}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getOperation(@PathParam("id_op") String id, JsonNode queryDsl); @POST @Path("/operations/{id_op}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response createOperation(@PathParam("id_op") String operationId,
        LogbookOperationParameters operation); @PUT @Path("/operations/{id_op}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateOperation(@PathParam("id_op") String operationId, LogbookOperationParameters operation); @POST @Path("/operations/traceability") @Produces(MediaType.APPLICATION_JSON) Response traceability(@HeaderParam(GlobalDataRest.X_TENANT_ID) String xTenantId); @POST @Path("/operations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response bulkCreateOperation(JsonNode query); @GET @Path("/operations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response selectOperation(JsonNode query); @GET @Path("/slicedOperations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response selectOperationSliced(JsonNode query); @PUT @Path("/operations") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) // Note: here let String since we need JsonHandler to parser the object Response updateOperationBulk(String arrayNodeOperations); @GET @Path("/operations/{id_op}/unitlifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode query); @POST @Path("/operations/{id_op}/unitlifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response createUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String unitLcId, LogbookLifeCycleUnitParameters parameters); @POST @Path("/operations/{id_op}/bulklifecycles/unit/temporary") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesUnitTemporaryByOperation(@PathParam("id_op") String operationId,
                                                                 List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @POST @Path("/operations/{id_op}/bulklifecycles/got/temporary") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesGOTTemporaryByOperation(@PathParam("id_op") String operationId,
                                                                List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @POST @Path("/operations/{id_op}/bulklifecycles/unit") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesUnitByOperation(@PathParam("id_op") String operationId,
                                                                 List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @POST @Path("/operations/{id_op}/bulklifecycles/got") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesGOTByOperation(@PathParam("id_op") String operationId,
                                                                List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk); @PUT @Path("/operations/{id_op}/unitlifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateUnitLifeCyclesUnitTemporaryByOperation(@PathParam("id_op") String operationId,
                                                                 @PathParam("id_lc") String unitLcId, @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus,
                                                                 LogbookLifeCycleUnitParameters parameters); @DELETE @Path("/operations/{id_op}/unitlifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response deleteUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String unitLcId); @Deprecated @PUT @Path("/operations/{id_op}/unitlifecycles/{id_lc}/commit") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response commitUnitLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String unitLcId); @POST @Path("/operations/{id_op}/unitlifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response bulkCreateUnit(@PathParam("id_op") String idOp, String array); @PUT @Path("/operations/{id_op}/lifecycles/objectgroup/bulk") @Consumes(MediaType.APPLICATION_JSON) Response createLifeCycleObjectGroupBulk(@PathParam("id_op") String idOp,
        List<LogbookLifeCycleObjectGroupModel> logbookLifeCycleModels); @PUT @Path("/operations/{id_op}/lifecycles/unit/bulk") @Consumes(MediaType.APPLICATION_JSON) Response createLifeCycleUnitBulk(@PathParam("id_op") String idOp,
        List<LogbookLifeCycleUnitModel> logbookLifeCycleModels); @PUT @Path("/operations/{id_op}/unitlifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) // Note: here let String since we need JsonHandler to parser the object Response updateBulkUnit(@PathParam("id_op") String idOp, String arrayNodeLifecycle); @GET @Path("/unitlifecycles/{id_lc}") @Produces(MediaType.APPLICATION_JSON) Response getUnitLifeCycleById(@PathParam("id_lc") String unitLifeCycleId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode queryDsl); @HEAD @Path("/unitlifecycles/{id_lc}") Response getUnitLifeCycleStatus(@PathParam("id_lc") String unitLifeCycleId); @GET @Path("/unitlifecycles") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getUnitLifeCycles(JsonNode queryDsl, @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus); @GET @Path("/raw/unitlifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawUnitLifecyclesByLastPersistedDate(JsonNode selectionJsonNode); @GET @Path("/raw/unitlifecycles/byid/{id}") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawUnitLifeCycleById(@PathParam("id") String id); @GET @Path("/raw/unitlifecycles/byids") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawUnitLifeCycleByIds(List<String> ids); @GET @Path("/operations/{id_op}/objectgrouplifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode query); @POST @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response createObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId, LogbookLifeCycleObjectGroupParameters parameters); @PUT @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response updateObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus,
        LogbookLifeCycleObjectGroupParameters parameters); @DELETE @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response deleteObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId); @Deprecated @PUT @Path("/operations/{id_op}/objectgrouplifecycles/{id_lc}/commit") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response commitObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId,
        @PathParam("id_lc") String objGrpId); @POST @Path("/operations/{id_op}/objectgrouplifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response bulkCreateObjectGroup(@PathParam("id_op") String idOp, String array); @PUT @Path("/operations/{id_op}/objectgrouplifecycles") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) // Note: here let String since we need JsonHandler to parser the object Response updateBulkObjectGroup(@PathParam("id_op") String idOp, String arrayNodeLifecycle); @GET @Path("/objectgrouplifecycles/{id_lc}") @Produces(MediaType.APPLICATION_JSON) Response getObjectGroupLifeCycleById(@PathParam("id_lc") String objectGroupLifeCycleId,
        @HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus, JsonNode queryDsl); @GET @Path("/objectgrouplifecycles") @Produces(MediaType.APPLICATION_JSON) Response getObjectGroupLifeCycles(@HeaderParam(GlobalDataRest.X_EVENT_STATUS) String evtStatus,
        JsonNode queryDsl); @HEAD @Path("/objectgrouplifecycles/{id_lc}") Response getObjectGroupLifeCycleStatus(@PathParam("id_lc") String objectGroupLifeCycleId); @GET @Path("/raw/objectgrouplifecycles/bylastpersisteddate") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawObjectGroupLifecyclesByLastPersistedDate(JsonNode selectionJsonNode); @GET @Path("/raw/objectgrouplifecycles/byid/{id}") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawObjectGroupLifeCycleById(@PathParam("id") String id); @GET @Path("/raw/objectgrouplifecycles/byids") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getRawObjectGroupLifeCycleByIds(List<String> ids); @DELETE @Path("/operations/{id_op}/unitlifecycles") Response rollBackUnitLifeCyclesByOperation(@PathParam("id_op") String operationId); @DELETE @Path("/operations/{id_op}/objectgrouplifecycles") Response rollBackObjectGroupLifeCyclesByOperation(@PathParam("id_op") String operationId); @POST @Path("/lifecycles/units/traceability") @Produces(MediaType.APPLICATION_JSON) Response traceabilityLfcUnit(@HeaderParam(GlobalDataRest.X_TENANT_ID) String xTenantId); @POST @Path("/lifecycles/objectgroups/traceability") @Produces(MediaType.APPLICATION_JSON) Response traceabilityLfcObjectGroup(@HeaderParam(GlobalDataRest.X_TENANT_ID) String xTenantId); @GET @Path("/lifecycles/traceability/check/{id}") @Produces(MediaType.APPLICATION_JSON) Response checkLifecycleTraceabilityStatus(@PathParam("id") String operationId); @Path("/reindex") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response reindex(IndexParameters indexParameters); @Path("/alias") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response changeIndexes(SwitchIndexParameters switchIndexParameters); @Path(AUDIT_TRACEABILITY_URI) @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response launchTraceabilityAudit(AuditLogbookOptions options); @DELETE @Path("/objectgrouplifecycles/bulkDelete") @Produces(MediaType.APPLICATION_JSON) Response deleteObjectGroups(List<String> objectGroupIds); @DELETE @Produces(MediaType.APPLICATION_JSON) @Path("/lifeCycleUnits/bulkDelete") Response deleteUnits(List<String> unitsIdentifier); static final String CODE_VITAM; }