public class LogbookUnitLifeCycleTraceabilityHelper extends LogbookLifeCycleTraceabilityHelper
INITIAL_START_DATE| Constructor and Description |
|---|
LogbookUnitLifeCycleTraceabilityHelper(HandlerIO handlerIO,
LogbookOperationsClient logbookOperationsClient,
ItemStatus itemStatus,
String operationID,
WorkspaceClientFactory workspaceClientFactory,
CloseableIterator<JsonLineModel> traceabilityDataIterator,
String traceabilityEventFileName,
String traceabilityZipFileName) |
| Modifier and Type | Method and Description |
|---|---|
protected Select |
generateSelectLogbookOperation(LocalDateTime date) |
TraceabilityType |
getTraceabilityType() |
String |
getZipName() |
void |
saveDataInZip(MerkleTreeAlgo algo,
TraceabilityFile file)
Search for entries to secure with the traceability process and store data in the given Traceability zip file.
Also, Merkle Algorithm should be updated by adding each wanted entry as a leaf of the tree. |
createLogbookOperationEvent, createLogbookOperationStructure, extractAppendToFinalFile, getDataSize, getMaxEntriesReached, getPreviousMonthStartDate, getPreviousMonthTimestampToken, getPreviousStartDate, getPreviousTimestampToken, getPreviousYearStartDate, getPreviousYearTimestampToken, getStepName, getTimestampStepName, getTraceabilityEndDate, getTraceabilityStartDate, getTraceabilityStatistics, initialize, saveEmpty, storeAndDeleteZippublic LogbookUnitLifeCycleTraceabilityHelper(HandlerIO handlerIO, LogbookOperationsClient logbookOperationsClient, ItemStatus itemStatus, String operationID, WorkspaceClientFactory workspaceClientFactory, CloseableIterator<JsonLineModel> traceabilityDataIterator, String traceabilityEventFileName, String traceabilityZipFileName)
handlerIO - Workflow Input/Output of the traceability eventlogbookOperationsClient - used to search the operation to secureitemStatus - used by workflow, event must be updated hereoperationID - of the current traceability processtraceabilityDataIterator - traceabilityEventFileName - traceabilityZipFileName - public void saveDataInZip(MerkleTreeAlgo algo, TraceabilityFile file) throws IOException, TraceabilityException
LogbookTraceabilityHelperalgo - algorithm used to generate MerkleTree with data.file - output zip to store data (in some TYPE_COLLECTION.json)IOException - if any error occurs while writing in traceabilityFileTraceabilityException - for any other errors specifically in the search / data transformationpublic String getZipName()
public TraceabilityType getTraceabilityType()
protected Select generateSelectLogbookOperation(LocalDateTime date) throws InvalidCreateOperationException
generateSelectLogbookOperation in class LogbookLifeCycleTraceabilityHelperInvalidCreateOperationExceptionCopyright © 2020 Vitam. All rights reserved.