Class BuildTraceabilityActionPlugin
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.plugin.lfc_traceability.BuildTraceabilityActionPlugin
- All Implemented Interfaces:
VitamAutoCloseable
,WorkerAction
,AutoCloseable
- Direct Known Subclasses:
BuildObjectGroupTraceabilityActionPlugin
,BuildUnitTraceabilityActionPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.core.type.TypeReference<LfcMetadataPair>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected void
buildTraceabilityData
(HandlerIO handler, String lifecycleType, ItemStatus itemStatus) void
checkMandatoryIOParameter
(HandlerIO handler) Check mandatory parameterstatic String
generateDigest
(com.fasterxml.jackson.databind.JsonNode jsonNode, DigestType digestType) Generate a hash for a JsonNode using VITAM Digest Algorithmprotected abstract TraceabilityStatistics
getTraceabilityStatistics
(DigestValidator digestValidator) protected abstract 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
-
Field Details
-
TYPE_REFERENCE
-
-
Constructor Details
-
BuildTraceabilityActionPlugin
public BuildTraceabilityActionPlugin()
-
-
Method Details
-
buildTraceabilityData
protected void buildTraceabilityData(HandlerIO handler, String lifecycleType, ItemStatus itemStatus) throws ProcessingException - Throws:
ProcessingException
-
getTraceabilityStatistics
protected abstract TraceabilityStatistics getTraceabilityStatistics(DigestValidator digestValidator) -
generateDigest
public static String generateDigest(com.fasterxml.jackson.databind.JsonNode jsonNode, DigestType digestType) throws IOException Generate a hash for a JsonNode using VITAM Digest Algorithm- Parameters:
jsonNode
- the jsonNode to compute digest fordigestType
- the digest type- Returns:
- hash of the jsonNode
- Throws:
IOException
-
checkMandatoryIOParameter
Description copied from interface:WorkerAction
Check mandatory parameter- Parameters:
handler
- input output list- Throws:
ProcessingException
- when handler io is not complete
-
stepName
-
actionName
-