class MassUpdateFinalize extends ActionHandler {

    @Override
    public ItemStatus execute(WorkerParameters param, HandlerIO handler)
        throws ProcessingException {

        try {

            storeReportToWorkspace(param, handler);

            storeReportToOffers(param);

            cleanupReport(param);

            return buildItemStatus(MASS_UPDATE_FINALIZE, OK, EventDetails.of("MassUpdate report generation OK."));

        } catch (LogbookClientException | VitamClientInternalException | StorageNotFoundClientException |
            StorageServerClientException | StorageAlreadyExistsClientException | InvalidParseOperationException e) {
            LOGGER.error(e);
            return buildItemStatus(MASS_UPDATE_FINALIZE, FATAL,
                EventDetails.of("Client error when generating report."));
        }
    }

    public  MassUpdateFinalize();
    @VisibleForTesting public  MassUpdateFinalize(BatchReportClientFactory batchReportClientFactory,
        LogbookOperationsClientFactory logbookOperationsClientFactory,
        StorageClientFactory storageClientFactory);

}