Class PrepareUnitLfcTraceabilityActionPlugin
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.plugin.lfc_traceability.PrepareLfcTraceabilityActionPlugin
fr.gouv.vitam.worker.core.plugin.lfc_traceability.PrepareUnitLfcTraceabilityActionPlugin
- All Implemented Interfaces:
VitamAutoCloseable,WorkerAction,AutoCloseable
PrepareUnitLfcTraceabilityActionPlugin.
-
Field Summary
Fields inherited from class fr.gouv.vitam.worker.core.plugin.lfc_traceability.PrepareLfcTraceabilityActionPlugin
JSON_NODE_TYPE_REFERENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringexecute(WorkerParameters params, HandlerIO handler) Execute an actionprotected InputStreamexportRawLifecyclesByLastPersistedDate(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, LocalDateTime startDate, LocalDateTime endDate, int maxEntries) static StringgetId()getRawMetadata(Set<String> ids, MetaDataClientFactory metaDataClientFactory) protected StringstepName()Methods inherited from class fr.gouv.vitam.worker.core.plugin.lfc_traceability.PrepareLfcTraceabilityActionPlugin
checkMandatoryIOParameter, selectAndExportLifecyclesWithMetadataMethods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, updateDetailItemStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.gouv.vitam.worker.core.api.WorkerAction
executeList
-
Constructor Details
-
PrepareUnitLfcTraceabilityActionPlugin
public PrepareUnitLfcTraceabilityActionPlugin()
-
-
Method Details
-
execute
Description copied from interface:WorkerActionExecute an action- Parameters:
params-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
-
exportRawLifecyclesByLastPersistedDate
protected InputStream exportRawLifecyclesByLastPersistedDate(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, LocalDateTime startDate, LocalDateTime endDate, int maxEntries) throws LogbookClientException, InvalidParseOperationException, IOException - Specified by:
exportRawLifecyclesByLastPersistedDatein classPrepareLfcTraceabilityActionPlugin- Throws:
LogbookClientExceptionInvalidParseOperationExceptionIOException
-
getRawMetadata
protected Map<String,com.fasterxml.jackson.databind.JsonNode> getRawMetadata(Set<String> ids, MetaDataClientFactory metaDataClientFactory) throws ProcessingException - Specified by:
getRawMetadatain classPrepareLfcTraceabilityActionPlugin- Throws:
ProcessingException
-
stepName
- Specified by:
stepNamein classPrepareLfcTraceabilityActionPlugin
-
actionName
- Specified by:
actionNamein classPrepareLfcTraceabilityActionPlugin
-
getId
-