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
,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 String
execute
(WorkerParameters params, HandlerIO handler) Execute an actionprotected InputStream
exportRawLifecyclesByLastPersistedDate
(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, LocalDateTime startDate, LocalDateTime endDate, int maxEntries) static String
getId()
getRawMetadata
(Set<String> ids, MetaDataClientFactory metaDataClientFactory) protected String
stepName()
Methods inherited from class fr.gouv.vitam.worker.core.plugin.lfc_traceability.PrepareLfcTraceabilityActionPlugin
checkMandatoryIOParameter, selectAndExportLifecyclesWithMetadata
Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, executeList, updateDetailItemStatus
-
Constructor Details
-
PrepareUnitLfcTraceabilityActionPlugin
public PrepareUnitLfcTraceabilityActionPlugin()
-
-
Method Details
-
execute
Description copied from class:ActionHandler
Execute an action- Overrides:
execute
in classActionHandler
- Parameters:
params
-WorkerParameters
handler
- 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:
exportRawLifecyclesByLastPersistedDate
in classPrepareLfcTraceabilityActionPlugin
- Throws:
LogbookClientException
InvalidParseOperationException
IOException
-
getRawMetadata
protected Map<String,com.fasterxml.jackson.databind.JsonNode> getRawMetadata(Set<String> ids, MetaDataClientFactory metaDataClientFactory) throws ProcessingException - Specified by:
getRawMetadata
in classPrepareLfcTraceabilityActionPlugin
- Throws:
ProcessingException
-
stepName
- Specified by:
stepName
in classPrepareLfcTraceabilityActionPlugin
-
actionName
- Specified by:
actionName
in classPrepareLfcTraceabilityActionPlugin
-
getId
-