Class TraceabilityEvent
java.lang.Object
fr.gouv.vitam.logbook.common.model.TraceabilityEvent
Class used to save traceability event to be store in logbook collection
-
Constructor Summary
ConstructorDescriptionEmpty constructor for JacksonTraceabilityEvent
(TraceabilityType logType, String startDate, String endDate, String hash, byte[] timeStampToken, String previousLogbookTraceabilityDate, String minusOneMonthLogbookTraceabilityDate, String minusOneYearLogbookTraceabilityDate, long numberOfElements, String fileName, long size, DigestType digestAlgorithm, boolean maxEntriesReached, String securisationVersion, TraceabilityStatistics statistics) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetHash()
boolean
long
getter of numberOfElementsgetter for securisationVersionlong
getSize()
byte[]
boolean
void
setTimeStampToken
(byte[] timeStampToken)
-
Constructor Details
-
TraceabilityEvent
public TraceabilityEvent()Empty constructor for Jackson -
TraceabilityEvent
public TraceabilityEvent(TraceabilityType logType, String startDate, String endDate, String hash, byte[] timeStampToken, String previousLogbookTraceabilityDate, String minusOneMonthLogbookTraceabilityDate, String minusOneYearLogbookTraceabilityDate, long numberOfElements, String fileName, long size, DigestType digestAlgorithm, boolean maxEntriesReached, String securisationVersion, TraceabilityStatistics statistics) Constructor- Parameters:
logType
- logTypestartDate
- startDateendDate
- endDatehash
- hashtimeStampToken
- timeStampTokenpreviousLogbookTraceabilityDate
- previousLogbookTraceabilityDateminusOneMonthLogbookTraceabilityDate
- minusOneMonthLogbookTraceabilityDateminusOneYearLogbookTraceabilityDate
- minusOneYearLogbookTraceabilityDatenumberOfElements
- numberOfElementsfileName
- fileNamesize
- sizedigestAlgorithm
- digestAlgorithmstatistics
-
-
-
Method Details
-
getStartDate
- Returns:
- startDate
-
getEndDate
- Returns:
- endDate
-
getHash
- Returns:
- hash
-
getNumberOfElements
public long getNumberOfElements()getter of numberOfElements- Returns:
- numberOfElements
-
getFileName
- Returns:
- file name
-
getTimeStampToken
public byte[] getTimeStampToken()- Returns:
- timestamp token
-
setTimeStampToken
public void setTimeStampToken(byte[] timeStampToken) -
getLogType
- Returns:
- log type
-
getMinusOneMonthLogbookTraceabilityDate
- Returns:
- Date of the one month previous traceability logbook
-
getMinusOneYearLogbookTraceabilityDate
- Returns:
- Date of the one year previous traceability logbook
-
getPreviousLogbookTraceabilityDate
- Returns:
- Date of the previous traceability logbook
-
getSize
public long getSize()- Returns:
- Size of the entry
-
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
getter for securisationVersion -
isMaxEntriesReached
public boolean isMaxEntriesReached() -
getStatistics
-