public class AlertLogbookOperationsDecorator extends LogbookOperationsDecorator
logbookOperations| Constructor and Description |
|---|
AlertLogbookOperationsDecorator(LogbookOperations logbookOperations,
List<LogbookEvent> alertEvents) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(LogbookOperationParameters parameters)
Create and insert logbook operation entries
|
void |
createBulkLogbookOperation(LogbookOperationParameters[] operationArray)
Create one Logbook Operation with already multiple sub-events
|
RequestResponse<LogbookOperation> |
selectOperations(com.fasterxml.jackson.databind.JsonNode select) |
void |
update(LogbookOperationParameters parameters)
Update and insert logbook operation entries
|
void |
updateBulkLogbookOperation(LogbookOperationParameters[] operationArray)
Update one Logbook Operation with multiple sub-events
It adds this new entry within the very same Logbook Operaton entry in "events" array. |
findFirstTraceabilityOperationOKAfterDate, findLastTraceabilityOperationOK, getById, reindex, select, select, selectOperationsByLastPersistenceDateInterval, switchIndexpublic AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, List<LogbookEvent> alertEvents)
public void create(LogbookOperationParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException
LogbookOperationscreate in interface LogbookOperationscreate in class LogbookOperationsDecoratorparameters - the entry parametersLogbookAlreadyExistsException - if an operation with the same
eventIdentifierProcess and outcome="Started" already existsLogbookDatabaseException - if errors occur while connecting
or writing to the databasepublic void update(LogbookOperationParameters parameters) throws LogbookNotFoundException, LogbookDatabaseException
LogbookOperationsupdate in interface LogbookOperationsupdate in class LogbookOperationsDecoratorparameters - the entry parametersLogbookNotFoundException - if no operation with the same
eventIdentifierProcess existsLogbookDatabaseException - if errors occur while connecting
or writing to the databasepublic RequestResponse<LogbookOperation> selectOperations(com.fasterxml.jackson.databind.JsonNode select) throws LogbookDatabaseException, LogbookNotFoundException, InvalidParseOperationException, VitamDBException
public void createBulkLogbookOperation(LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookOperationscreateBulkLogbookOperation in interface LogbookOperationscreateBulkLogbookOperation in class LogbookOperationsDecoratoroperationArray - with first and next events to add/updateLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookAlreadyExistsException - if logbook already existspublic void updateBulkLogbookOperation(LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookNotFoundException
LogbookOperationsupdateBulkLogbookOperation in interface LogbookOperationsupdateBulkLogbookOperation in class LogbookOperationsDecoratoroperationArray - containing all operations Logbook in orderLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if no operation selected cannot be foundCopyright © 2020 Vitam. All rights reserved.