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
,java.lang.AutoCloseable
public class PrepareUnitLfcTraceabilityActionPlugin extends PrepareLfcTraceabilityActionPlugin
PrepareUnitLfcTraceabilityActionPlugin.
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.worker.core.plugin.lfc_traceability.PrepareLfcTraceabilityActionPlugin
JSON_NODE_TYPE_REFERENCE
-
-
Constructor Summary
Constructors Constructor Description PrepareUnitLfcTraceabilityActionPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
actionName()
ItemStatus
execute(WorkerParameters params, HandlerIO handler)
Execute an actionprotected java.io.InputStream
exportRawLifecyclesByLastPersistedDate(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, java.time.LocalDateTime startDate, java.time.LocalDateTime endDate, int maxEntries)
static java.lang.String
getId()
protected java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>
getRawMetadata(java.util.Set<java.lang.String> ids, MetaDataClientFactory metaDataClientFactory)
protected java.lang.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, updateDetailItemStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.gouv.vitam.worker.core.api.WorkerAction
executeList
-
-
-
-
Method Detail
-
execute
public ItemStatus execute(WorkerParameters params, HandlerIO handler) throws ProcessingException
Description copied from interface:WorkerAction
Execute an action- 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 java.io.InputStream exportRawLifecyclesByLastPersistedDate(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, java.time.LocalDateTime startDate, java.time.LocalDateTime endDate, int maxEntries) throws LogbookClientException, InvalidParseOperationException, java.io.IOException
- Specified by:
exportRawLifecyclesByLastPersistedDate
in classPrepareLfcTraceabilityActionPlugin
- Throws:
LogbookClientException
InvalidParseOperationException
java.io.IOException
-
getRawMetadata
protected java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getRawMetadata(java.util.Set<java.lang.String> ids, MetaDataClientFactory metaDataClientFactory) throws ProcessingException
- Specified by:
getRawMetadata
in classPrepareLfcTraceabilityActionPlugin
- Throws:
ProcessingException
-
stepName
protected java.lang.String stepName()
- Specified by:
stepName
in classPrepareLfcTraceabilityActionPlugin
-
actionName
protected java.lang.String actionName()
- Specified by:
actionName
in classPrepareLfcTraceabilityActionPlugin
-
getId
public static java.lang.String getId()
-
-