Package fr.gouv.vitam.logbook.common.traceability

# Class TraceabilityService

java.lang.Object
fr.gouv.vitam.logbook.common.traceability.TraceabilityService

public class TraceabilityService extends Object
Service used to make the generic traceability algo.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TraceabilityService(TimestampGenerator timestampGenerator, LogbookTraceabilityHelper traceabilityHelper, Integer tenantId, File tmpFolder)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `secureData(String strategyId)`
  Initialize and do the traceability process.
  The generated GUID for the operation is gettable after the operation finish with getOperationID.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TraceabilityService

    public TraceabilityService(TimestampGenerator timestampGenerator, LogbookTraceabilityHelper traceabilityHelper, Integer tenantId, File tmpFolder)
    Parameters:
      `timestampGenerator` - Service used to generate timestamp for the traceability
      `traceabilityHelper` - Implementation to handle specific method or values depending on the traceability type
      `tenantId` - used tenantId for the traceability
      `tmpFolder` - Folder witch one we store the ZipFile

- ## Method Details

  - ### secureData

    public void secureData(String strategyId) throws TraceabilityException
    Initialize and do the traceability process.
    The generated GUID for the operation is gettable after the operation finish with getOperationID.
    Throws:
      `TraceabilityException` - if any error or problem occurs