Class TraceabilityEvent


  • public class TraceabilityEvent
    extends java.lang.Object
    Class used to save traceability event to be store in logbook collection
    • Constructor Detail

      • TraceabilityEvent

        public TraceabilityEvent()
        Empty constructor for Jackson
      • TraceabilityEvent

        public TraceabilityEvent​(TraceabilityType logType,
                                 java.lang.String startDate,
                                 java.lang.String endDate,
                                 java.lang.String hash,
                                 byte[] timeStampToken,
                                 java.lang.String previousLogbookTraceabilityDate,
                                 java.lang.String minusOneMonthLogbookTraceabilityDate,
                                 java.lang.String minusOneYearLogbookTraceabilityDate,
                                 long numberOfElements,
                                 java.lang.String fileName,
                                 long size,
                                 DigestType digestAlgorithm,
                                 boolean maxEntriesReached,
                                 java.lang.String securisationVersion,
                                 TraceabilityStatistics statistics)
        Constructor
        Parameters:
        logType - logType
        startDate - startDate
        endDate - endDate
        hash - hash
        timeStampToken - timeStampToken
        previousLogbookTraceabilityDate - previousLogbookTraceabilityDate
        minusOneMonthLogbookTraceabilityDate - minusOneMonthLogbookTraceabilityDate
        minusOneYearLogbookTraceabilityDate - minusOneYearLogbookTraceabilityDate
        numberOfElements - numberOfElements
        fileName - fileName
        size - size
        digestAlgorithm - digestAlgorithm
        statistics -
    • Method Detail

      • getStartDate

        public java.lang.String getStartDate()
        Returns:
        startDate
      • getEndDate

        public java.lang.String getEndDate()
        Returns:
        endDate
      • getHash

        public java.lang.String getHash()
        Returns:
        hash
      • getNumberOfElements

        public long getNumberOfElements()
        getter of numberOfElements
        Returns:
        numberOfElements
      • getFileName

        public java.lang.String getFileName()
        Returns:
        file name
      • getTimeStampToken

        public byte[] getTimeStampToken()
        Returns:
        timestamp token
      • setTimeStampToken

        public void setTimeStampToken​(byte[] timeStampToken)
      • getMinusOneMonthLogbookTraceabilityDate

        public java.lang.String getMinusOneMonthLogbookTraceabilityDate()
        Returns:
        Date of the one month previous traceability logbook
      • getMinusOneYearLogbookTraceabilityDate

        public java.lang.String getMinusOneYearLogbookTraceabilityDate()
        Returns:
        Date of the one year previous traceability logbook
      • getPreviousLogbookTraceabilityDate

        public java.lang.String getPreviousLogbookTraceabilityDate()
        Returns:
        Date of the previous traceability logbook
      • getSize

        public long getSize()
        Returns:
        Size of the entry
      • getDigestAlgorithm

        public DigestType getDigestAlgorithm()
        Returns:
        Size of the entry
      • getMaxEntriesReached

        public boolean getMaxEntriesReached()
        Returns:
        true if max entries has been reached (unit & object group lifecycle traceability operation are limited in size)
      • getSecurisationVersion

        public java.lang.String getSecurisationVersion()
        getter for securisationVersion
      • isMaxEntriesReached

        public boolean isMaxEntriesReached()