Class PrepareLfcTraceabilityActionPlugin
- java.lang.Object
-
- fr.gouv.vitam.worker.core.handler.ActionHandler
-
- fr.gouv.vitam.worker.core.plugin.lfc_traceability.PrepareLfcTraceabilityActionPlugin
-
- All Implemented Interfaces:
VitamAutoCloseable
,WorkerAction
,java.lang.AutoCloseable
- Direct Known Subclasses:
PrepareObjectGroupLfcTraceabilityActionPlugin
,PrepareUnitLfcTraceabilityActionPlugin
public abstract class PrepareLfcTraceabilityActionPlugin extends ActionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.core.type.TypeReference<com.fasterxml.jackson.databind.JsonNode>
JSON_NODE_TYPE_REFERENCE
-
Constructor Summary
Constructors Constructor Description PrepareLfcTraceabilityActionPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
actionName()
void
checkMandatoryIOParameter(HandlerIO handler)
Check mandatory parameterprotected abstract java.io.InputStream
exportRawLifecyclesByLastPersistedDate(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, java.time.LocalDateTime selectionStartDate, java.time.LocalDateTime selectionEndDate, int lifecycleTraceabilityMaxEntries)
protected abstract java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>
getRawMetadata(java.util.Set<java.lang.String> ids, MetaDataClientFactory metaDataClientFactory)
protected StatusCode
selectAndExportLifecyclesWithMetadata(int temporizationDelayInSeconds, int lifecycleTraceabilityMaxEntries, java.lang.String eventType, HandlerIO handlerIO)
protected abstract java.lang.String
stepName()
-
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
execute, executeList
-
-
-
-
Method Detail
-
selectAndExportLifecyclesWithMetadata
protected StatusCode selectAndExportLifecyclesWithMetadata(int temporizationDelayInSeconds, int lifecycleTraceabilityMaxEntries, java.lang.String eventType, HandlerIO handlerIO) throws ProcessingException, InvalidParseOperationException, LogbookClientException
-
checkMandatoryIOParameter
public void checkMandatoryIOParameter(HandlerIO handler) throws ProcessingException
Description copied from interface:WorkerAction
Check mandatory parameter- Parameters:
handler
- input output list- Throws:
ProcessingException
- when handler io is not complete
-
exportRawLifecyclesByLastPersistedDate
protected abstract java.io.InputStream exportRawLifecyclesByLastPersistedDate(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, java.time.LocalDateTime selectionStartDate, java.time.LocalDateTime selectionEndDate, int lifecycleTraceabilityMaxEntries) throws LogbookClientException, InvalidParseOperationException, java.io.IOException
- Throws:
LogbookClientException
InvalidParseOperationException
java.io.IOException
-
getRawMetadata
protected abstract java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getRawMetadata(java.util.Set<java.lang.String> ids, MetaDataClientFactory metaDataClientFactory) throws ProcessingException
- Throws:
ProcessingException
-
stepName
protected abstract java.lang.String stepName()
-
actionName
protected abstract java.lang.String actionName()
-
-