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,java.lang.AutoCloseable
- Direct Known Subclasses:
BuildObjectGroupTraceabilityActionPlugin,BuildUnitTraceabilityActionPlugin
public abstract class BuildTraceabilityActionPlugin extends ActionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.core.type.TypeReference<LfcMetadataPair>TYPE_REFERENCE
-
Constructor Summary
Constructors Constructor Description BuildTraceabilityActionPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.StringactionName()protected voidbuildTraceabilityData(HandlerIO handler, java.lang.String lifecycleType, ItemStatus itemStatus)voidcheckMandatoryIOParameter(HandlerIO handler)Check mandatory parameterstatic java.lang.StringgenerateDigest(com.fasterxml.jackson.databind.JsonNode jsonNode, DigestType digestType)Generate a hash for a JsonNode using VITAM Digest Algorithmprotected abstract TraceabilityStatisticsgetTraceabilityStatistics(DigestValidator digestValidator)protected abstract java.lang.StringstepName()-
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 Detail
-
TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<LfcMetadataPair> TYPE_REFERENCE
-
-
Method Detail
-
buildTraceabilityData
protected void buildTraceabilityData(HandlerIO handler, java.lang.String lifecycleType, ItemStatus itemStatus) throws ProcessingException
- Throws:
ProcessingException
-
getTraceabilityStatistics
protected abstract TraceabilityStatistics getTraceabilityStatistics(DigestValidator digestValidator)
-
generateDigest
public static java.lang.String generateDigest(com.fasterxml.jackson.databind.JsonNode jsonNode, DigestType digestType) throws java.io.IOExceptionGenerate 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:
java.io.IOException
-
checkMandatoryIOParameter
public void checkMandatoryIOParameter(HandlerIO handler) throws ProcessingException
Description copied from interface:WorkerActionCheck mandatory parameter- Parameters:
handler- input output list- Throws:
ProcessingException- when handler io is not complete
-
stepName
protected abstract java.lang.String stepName()
-
actionName
protected abstract java.lang.String actionName()
-
-