Class LogbookObjectGroupLifeCycleTraceabilityHelper

java.lang.Object
fr.gouv.vitam.worker.core.plugin.lfc_traceability.LogbookLifeCycleTraceabilityHelper
fr.gouv.vitam.worker.core.plugin.lfc_traceability.LogbookObjectGroupLifeCycleTraceabilityHelper
All Implemented Interfaces:
LogbookTraceabilityHelper

public class LogbookObjectGroupLifeCycleTraceabilityHelper extends LogbookLifeCycleTraceabilityHelper
  • Constructor Details

    • LogbookObjectGroupLifeCycleTraceabilityHelper

      public LogbookObjectGroupLifeCycleTraceabilityHelper(HandlerIO handlerIO, LogbookOperationsClient logbookOperationsClient, ItemStatus itemStatus, String operationID, CloseableIterator<com.fasterxml.jackson.databind.JsonNode> traceabilityDataIterator, String traceabilityEventFileName, String traceabilityZipFileName, String securisationVersion)
      Parameters:
      handlerIO - Workflow Input/Output of the traceability event
      logbookOperationsClient - used to search the operation to secure
      itemStatus - used by workflow, event must be updated here
      operationID - of the current traceability process
      traceabilityDataIterator -
      traceabilityEventFileName -
      traceabilityZipFileName -
  • Method Details

    • saveDataInZip

      public void saveDataInZip(MerkleTreeAlgo algo, TraceabilityFile file) throws IOException, TraceabilityException
      Description copied from interface: LogbookTraceabilityHelper
      Search for entries to secure with the traceability process and store data in the given Traceability zip file.
      Also, Merkle Algorithm should be updated by adding each wanted entry as a leaf of the tree.
      Parameters:
      algo - algorithm used to generate MerkleTree with data.
      file - output zip to store data (in some TYPE_COLLECTION.json)
      Throws:
      IOException - if any error occurs while writing in traceabilityFile
      TraceabilityException - for any other errors specifically in the search / data transformation
    • getZipName

      public String getZipName()
      Returns:
      the name of the tmp zip file
    • getTraceabilityType

      public TraceabilityType getTraceabilityType()
      Returns:
      the traceabilityType of the implementation class
    • getEventType

      protected String getEventType()
      Specified by:
      getEventType in class LogbookLifeCycleTraceabilityHelper