Class TraceabilityEvent
- java.lang.Object
-
- fr.gouv.vitam.logbook.common.model.TraceabilityEvent
-
public class TraceabilityEvent extends java.lang.Object
Class used to save traceability event to be store in logbook collection
-
-
Constructor Summary
Constructors Constructor Description TraceabilityEvent()
Empty constructor for JacksonTraceabilityEvent(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestType
getDigestAlgorithm()
java.lang.String
getEndDate()
java.lang.String
getFileName()
java.lang.String
getHash()
TraceabilityType
getLogType()
boolean
getMaxEntriesReached()
java.lang.String
getMinusOneMonthLogbookTraceabilityDate()
java.lang.String
getMinusOneYearLogbookTraceabilityDate()
long
getNumberOfElements()
getter of numberOfElementsjava.lang.String
getPreviousLogbookTraceabilityDate()
java.lang.String
getSecurisationVersion()
getter for securisationVersionlong
getSize()
java.lang.String
getStartDate()
TraceabilityStatistics
getStatistics()
byte[]
getTimeStampToken()
boolean
isMaxEntriesReached()
void
setTimeStampToken(byte[] timeStampToken)
-
-
-
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
- logTypestartDate
- startDateendDate
- endDatehash
- hashtimeStampToken
- timeStampTokenpreviousLogbookTraceabilityDate
- previousLogbookTraceabilityDateminusOneMonthLogbookTraceabilityDate
- minusOneMonthLogbookTraceabilityDateminusOneYearLogbookTraceabilityDate
- minusOneYearLogbookTraceabilityDatenumberOfElements
- numberOfElementsfileName
- fileNamesize
- sizedigestAlgorithm
- digestAlgorithmstatistics
-
-
-
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)
-
getLogType
public TraceabilityType getLogType()
- Returns:
- log type
-
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()
-
getStatistics
public TraceabilityStatistics getStatistics()
-
-