public class LogbookUnitLifeCycleTraceabilityHelper extends LogbookLifeCycleTraceabilityHelper
INITIAL_START_DATE
Constructor and Description |
---|
LogbookUnitLifeCycleTraceabilityHelper(HandlerIO handlerIO,
LogbookOperationsClient logbookOperationsClient,
ItemStatus itemStatus,
String operationID,
WorkspaceClientFactory workspaceClientFactory) |
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, getUriName, initialize, saveEmpty, saveEvent, storeAndDeleteZip
public LogbookUnitLifeCycleTraceabilityHelper(HandlerIO handlerIO, LogbookOperationsClient logbookOperationsClient, ItemStatus itemStatus, String operationID, WorkspaceClientFactory workspaceClientFactory)
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 processpublic void saveDataInZip(MerkleTreeAlgo algo, TraceabilityFile file) throws IOException, TraceabilityException
LogbookTraceabilityHelper
algo
- 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 LogbookLifeCycleTraceabilityHelper
InvalidCreateOperationException
Copyright © 2018 Vitam. All rights reserved.