Class AlertLogbookOperationsDecorator
- java.lang.Object
-
- fr.gouv.vitam.logbook.operations.core.LogbookOperationsDecorator
-
- fr.gouv.vitam.logbook.operations.core.AlertLogbookOperationsDecorator
-
- All Implemented Interfaces:
LogbookOperations
public class AlertLogbookOperationsDecorator extends LogbookOperationsDecorator
LogbookOperationsDecorator implementation. This implementation create a LogbookOperation and if necessary create an alert
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.logbook.operations.core.LogbookOperationsDecorator
logbookOperations
-
-
Constructor Summary
Constructors Constructor Description AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, java.util.List<LogbookEvent> alertEvents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(LogbookOperationParameters parameters)Create and insert logbook operation entriesvoidcreateBulkLogbookOperation(LogbookOperationParameters[] operationArray)Create one Logbook Operation with already multiple sub-eventsRequestResponse<LogbookOperation>selectOperations(com.fasterxml.jackson.databind.JsonNode select)voidupdate(LogbookOperationParameters parameters)Update and insert logbook operation entriesvoidupdateBulkLogbookOperation(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.-
Methods inherited from class fr.gouv.vitam.logbook.operations.core.LogbookOperationsDecorator
findFirstTraceabilityOperationOKAfterDate, findLastTraceabilityOperationOK, getById, reindex, select, select, selectOperationsByLastPersistenceDateInterval, switchIndex
-
-
-
-
Constructor Detail
-
AlertLogbookOperationsDecorator
public AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, java.util.List<LogbookEvent> alertEvents)
-
-
Method Detail
-
create
public void create(LogbookOperationParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException
Description copied from interface:LogbookOperationsCreate and insert logbook operation entries- Specified by:
createin interfaceLogbookOperations- Overrides:
createin classLogbookOperationsDecorator- Parameters:
parameters- the entry parameters- Throws:
LogbookAlreadyExistsException- if an operation with the same eventIdentifierProcess and outcome="Started" already existsLogbookDatabaseException- if errors occur while connecting or writing to the database
-
update
public void update(LogbookOperationParameters parameters) throws LogbookNotFoundException, LogbookDatabaseException
Description copied from interface:LogbookOperationsUpdate and insert logbook operation entries- Specified by:
updatein interfaceLogbookOperations- Overrides:
updatein classLogbookOperationsDecorator- Parameters:
parameters- the entry parameters- Throws:
LogbookNotFoundException- if no operation with the same eventIdentifierProcess existsLogbookDatabaseException- if errors occur while connecting or writing to the database
-
selectOperations
public RequestResponse<LogbookOperation> selectOperations(com.fasterxml.jackson.databind.JsonNode select) throws LogbookDatabaseException, LogbookNotFoundException, InvalidParseOperationException, VitamDBException
-
createBulkLogbookOperation
public void createBulkLogbookOperation(LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookAlreadyExistsException
Description copied from interface:LogbookOperationsCreate one Logbook Operation with already multiple sub-events- Specified by:
createBulkLogbookOperationin interfaceLogbookOperations- Overrides:
createBulkLogbookOperationin classLogbookOperationsDecorator- Parameters:
operationArray- with first and next events to add/update- Throws:
LogbookDatabaseException- if errors occur while connecting or writing to the databaseLogbookAlreadyExistsException- if logbook already exists
-
updateBulkLogbookOperation
public void updateBulkLogbookOperation(LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookNotFoundException
Description copied from interface:LogbookOperationsUpdate one Logbook Operation with multiple sub-events
It adds this new entry within the very same Logbook Operaton entry in "events" array.- Specified by:
updateBulkLogbookOperationin interfaceLogbookOperations- Overrides:
updateBulkLogbookOperationin classLogbookOperationsDecorator- Parameters:
operationArray- containing all operations Logbook in order- Throws:
LogbookDatabaseException- if errors occur while connecting or writing to the databaseLogbookNotFoundException- if no operation selected cannot be found
-
-