Package fr.gouv.vitam.worker.core.plugin
Class GenericReportGenerationHandler
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.plugin.GenericReportGenerationHandler
- All Implemented Interfaces:
VitamAutoCloseable,AutoCloseable
- Direct Known Subclasses:
EliminationActionReportGenerationHandler,TransferReplyReportGenerationHandler
Generate the report :
- compute data from batch-report
- store the report file
- clean the batch-report data
- compute data from batch-report
- store the report file
- clean the batch-report data
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGenericReportGenerationHandler(CommonReportService<?> reportService) -
Method Summary
Modifier and TypeMethodDescriptionexecute(WorkerParameters param, HandlerIO handler) Execute an actionprotected ReportgenerateReport(WorkerParameters param, LogbookOperation logbook) protected abstract Stringprotected abstract LogbookOperationgetLogbookInformation(HandlerIO handlerIO, WorkerParameters param) protected OperationSummarygetOperationSummary(LogbookOperation logbook, String processId) protected abstract Stringprotected ReportSummarygetReport(LogbookOperation logbook) protected abstract ReportTypeprotected Map<StatusCode,Integer> getStatusStatistic(LogbookEvent logbookEvent) Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryIOParameter, checkMandatoryParameters, close, executeList, updateDetailItemStatus
-
Constructor Details
-
GenericReportGenerationHandler
-
-
Method Details
-
execute
Description copied from class:ActionHandlerExecute an action- Overrides:
executein classActionHandler- Parameters:
param-WorkerParametershandler- the handlerIo- Returns:
- CompositeItemStatus:response contains a list of functional message and status code
- Throws:
ProcessingException- if an error is encountered when executing the action
-
getOperationSummary
protected OperationSummary getOperationSummary(LogbookOperation logbook, String processId) throws InvalidParseOperationException - Throws:
InvalidParseOperationException
-
generateReport
protected Report generateReport(WorkerParameters param, LogbookOperation logbook) throws InvalidParseOperationException - Throws:
InvalidParseOperationException
-
getReport
-
getStatusStatistic
-
getPluginId
-
getReportType
-
getLogbookActionKey
-
getLogbookInformation
protected abstract LogbookOperation getLogbookInformation(HandlerIO handlerIO, WorkerParameters param) throws ProcessingException - Throws:
ProcessingException
-