Class TraceabilityService


  • public class TraceabilityService
    extends java.lang.Object
    Service used to make the generic traceability algo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void secureData​(java.lang.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 Detail

      • TraceabilityService

        public TraceabilityService​(TimestampGenerator timestampGenerator,
                                   LogbookTraceabilityHelper traceabilityHelper,
                                   java.lang.Integer tenantId,
                                   java.io.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 Detail

      • secureData

        public void secureData​(java.lang.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