Interface LogbookDbAccess
-
- All Known Implementing Classes:
LogbookMongoDbAccessImpl
public interface LogbookDbAccess
MongoDbAccess interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bulkInsert(LogbookCollections lifecycleUnit, java.util.List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)
void
close()
Close database accessvoid
createBulkLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupParameters... lifecycleItems)
Create one Logbook LifeCycle with already multiple sub-eventsvoid
createBulkLogbookLifeCycleUnit(LogbookLifeCycleUnitParameters... lifecycleItems)
Create one Logbook LifeCycle with already multiple sub-eventsvoid
createBulkLogbookOperation(LogbookOperationParameters... operationItems)
Create one Logbook Operation with already multiple sub-eventsvoid
createLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGrouptInProcess)
Creates ObjectGroup lifeCycle from a LogbookLifeCycleObjectGroupInProcess instancevoid
createLogbookLifeCycleObjectGroup(java.lang.String idOperation, LogbookLifeCycleObjectGroupParameters lifecycleItem)
Create one Logbook LifeCycle object groupvoid
createLogbookLifeCycleUnit(LogbookLifeCycleUnitInProcess logbookLifeCycleUnitInProcess)
Creates Unit lifeCycle from a LogbookLifeCycleUnitInProcess instancevoid
createLogbookLifeCycleUnit(java.lang.String idOperation, LogbookLifeCycleUnitParameters lifecycleItem)
Create one Logbook LifeCycle unitvoid
createLogbookOperation(LogbookOperationParameters operationItem)
Create one Logbook Operationvoid
deleteCollectionForTesting(LogbookCollections collection)
Delete logbook collectionboolean
existsLogbookLifeCycleObjectGroup(java.lang.String lifecycleItem)
Check if one eventIdentifier for Lifecycle exists alreadyboolean
existsLogbookLifeCycleObjectGroupInProcess(java.lang.String lifecycleItem)
Check if one eventIdentifier for Lifecycle exists alreadyboolean
existsLogbookLifeCycleUnit(java.lang.String lifecycleItem)
Check if one eventIdentifier for Lifecycle exists alreadyboolean
existsLogbookLifeCycleUnitInProcess(java.lang.String lifecycleItem)
Check if one eventIdentifier for Lifecycle exists alreadyboolean
existsLogbookOperation(java.lang.String operationItem)
Check if one eventIdentifier for Operation exists alreadyjava.lang.String
getInfo()
Get information on a DatabaseLogbookLifeCycleObjectGroupInProcess
getLogbookLifeCycleObjectGroupInProcess(java.lang.String objectGroupId)
Gets ObjectGroup LifeCycle In processcom.mongodb.client.MongoCursor<LogbookLifeCycleObjectGroup>
getLogbookLifeCycleObjectGroupsFull(LogbookCollections collection, Select select)
Get a list of Logbook LifeCycle through Closeable MongoCursorcom.mongodb.client.MongoCursor<LogbookLifeCycle<?>>
getLogbookLifeCycles(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, LogbookCollections collection)
Get a list of Logbook LifeCycles through Closeable MongoCursorLogbookLifeCycleUnitInProcess
getLogbookLifeCycleUnitInProcess(java.lang.String unitId)
Get Unit LifeCycle In processcom.mongodb.client.MongoCursor<LogbookLifeCycleUnit>
getLogbookLifeCycleUnitsFull(LogbookCollections collection, Select select)
Get a list of Logbook LifeCycle through Closeable MongoCursorlong
getLogbookLifeCyleObjectGroupInProcessSize()
long
getLogbookLifeCyleObjectGroupSize()
long
getLogbookLifeCyleUnitInProcessSize()
long
getLogbookLifeCyleUnitSize()
LogbookOperation
getLogbookOperationById(java.lang.String eventIdentifierProcess)
Get one OperationLogbookOperation
getLogbookOperationById(java.lang.String eventIdentifierProcess, com.fasterxml.jackson.databind.JsonNode query, boolean slice, boolean crossTenant)
Get one OperationVitamMongoCursor<LogbookOperation>
getLogbookOperations(com.fasterxml.jackson.databind.JsonNode select, boolean sliced)
VitamMongoCursor<LogbookOperation>
getLogbookOperations(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, boolean crossTenant)
Get a list of Logbook Operation through Closeable MongoCursorlong
getLogbookOperationSize()
LogbookLifeCycle<?>
getOneLogbookLifeCycle(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, LogbookCollections collection)
Get a list of Logbook LifeCycles through Closeable MongoCursorvoid
rollbackLogbookLifeCycleObjectGroup(java.lang.String idOperation, java.lang.String lifecycleItem)
Rollback one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
rollbackLogbookLifeCycleUnit(java.lang.String idOperation, java.lang.String lifecycleItem)
Rollback one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
rollBackObjectGroupLifeCyclesByOperation(java.lang.String operationId)
Rolls back all the created objectGroups lifeCycles during a given operationvoid
rollBackUnitLifeCyclesByOperation(java.lang.String operationId)
Rolls back all the created unit lifeCycles during a given operationvoid
updateBulkLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupParameters... lifecycleItems)
Update one Logbook LifeCycle with multiple sub-events
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
updateBulkLogbookLifeCycleUnit(LogbookLifeCycleUnitParameters... lifecycleItems)
Update one Logbook LifeCycle with multiple sub-events
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
updateBulkLogbookOperation(LogbookOperationParameters... operationItems)
Update one Logbook Operation with multiple sub-events
It adds this new entry within the very same Logbook Operaton entry in "events" array.void
updateLogbookLifeCycle(LogbookCollections collection, java.util.List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk)
void
updateLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGrouptInProcess)
Updates ObjectGroup lifeCycle from a LogbookLifeCycleObjectGroupInProcess instancevoid
updateLogbookLifeCycleObjectGroup(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleObjectGroupParameters lifecycleItem)
Update one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
updateLogbookLifeCycleObjectGroup(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleObjectGroupParameters lifecycleItem, boolean commit)
Update one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
updateLogbookLifeCycleUnit(LogbookLifeCycleUnitInProcess logbookLifeCycleUnitInProcess)
Updates Unit lifeCycle from a LogbookLifeCycleUnitInProcess instancevoid
updateLogbookLifeCycleUnit(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleUnitParameters lifecycleItem)
Update one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
updateLogbookLifeCycleUnit(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleUnitParameters lifecycleItem, boolean commit)
Update one Logbook LifeCycle (in progress or committed
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.void
updateLogbookOperation(LogbookOperationParameters operationItem)
Update one Logbook Operation
It adds this new entry within the very same Logbook Operaton entry in "events" array.
-
-
-
Method Detail
-
close
void close()
Close database access
-
getLogbookOperationSize
long getLogbookOperationSize() throws LogbookDatabaseException, LogbookNotFoundException
- Returns:
- the current number of Logbook Operation
- Throws:
LogbookDatabaseException
LogbookNotFoundException
-
getLogbookLifeCyleUnitSize
long getLogbookLifeCyleUnitSize() throws LogbookDatabaseException, LogbookNotFoundException
- Returns:
- the current number of Logbook LifeCyle
- Throws:
LogbookDatabaseException
LogbookNotFoundException
-
getLogbookLifeCyleObjectGroupSize
long getLogbookLifeCyleObjectGroupSize()
- Returns:
- the current number of Logbook LifeCyle
-
existsLogbookOperation
boolean existsLogbookOperation(java.lang.String operationItem) throws LogbookDatabaseException
Check if one eventIdentifier for Operation exists already- Parameters:
operationItem
-- Returns:
- True if one LogbookOperation exists with this id
- Throws:
LogbookDatabaseException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
existsLogbookLifeCycleUnit
boolean existsLogbookLifeCycleUnit(java.lang.String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
Check if one eventIdentifier for Lifecycle exists already- Parameters:
lifecycleItem
-- Returns:
- True if one LogbookLibeCycle exists with this id
- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
existsLogbookLifeCycleObjectGroup
boolean existsLogbookLifeCycleObjectGroup(java.lang.String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
Check if one eventIdentifier for Lifecycle exists already- Parameters:
lifecycleItem
-- Returns:
- True if one LogbookLibeCycle exists with this id
- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
getLogbookOperationById
LogbookOperation getLogbookOperationById(java.lang.String eventIdentifierProcess) throws LogbookDatabaseException, LogbookNotFoundException
Get one Operation- Parameters:
eventIdentifierProcess
-- Returns:
- the corresponding LogbookOperation if it exists
- Throws:
LogbookDatabaseException
LogbookNotFoundException
VitamDBException
-
getLogbookOperationById
LogbookOperation getLogbookOperationById(java.lang.String eventIdentifierProcess, com.fasterxml.jackson.databind.JsonNode query, boolean slice, boolean crossTenant) throws LogbookDatabaseException, LogbookNotFoundException
Get one Operation- Parameters:
eventIdentifierProcess
-query
-slice
-crossTenant
-- Returns:
- the corresponding LogbookOperation if it exists
- Throws:
LogbookDatabaseException
LogbookNotFoundException
VitamDBException
-
createLogbookOperation
void createLogbookOperation(LogbookOperationParameters operationItem) throws LogbookDatabaseException, LogbookAlreadyExistsException
Create one Logbook Operation- Parameters:
operationItem
-- Throws:
LogbookDatabaseException
LogbookAlreadyExistsException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
createLogbookLifeCycleUnit
void createLogbookLifeCycleUnit(java.lang.String idOperation, LogbookLifeCycleUnitParameters lifecycleItem) throws LogbookDatabaseException, LogbookAlreadyExistsException
Create one Logbook LifeCycle unit- Parameters:
idOperation
-lifecycleItem
-- Throws:
LogbookDatabaseException
LogbookAlreadyExistsException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
createLogbookLifeCycleObjectGroup
void createLogbookLifeCycleObjectGroup(java.lang.String idOperation, LogbookLifeCycleObjectGroupParameters lifecycleItem) throws LogbookDatabaseException, LogbookAlreadyExistsException
Create one Logbook LifeCycle object group- Parameters:
idOperation
-lifecycleItem
-- Throws:
LogbookDatabaseException
LogbookAlreadyExistsException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
updateLogbookOperation
void updateLogbookOperation(LogbookOperationParameters operationItem) throws LogbookDatabaseException, LogbookNotFoundException
Update one Logbook Operation
It adds this new entry within the very same Logbook Operaton entry in "events" array.- Parameters:
operationItem
-- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
updateLogbookLifeCycleUnit
void updateLogbookLifeCycleUnit(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleUnitParameters lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
Update one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
idOperation
-idLfc
-lifecycleItem
-- Throws:
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
updateLogbookLifeCycleUnit
void updateLogbookLifeCycleUnit(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleUnitParameters lifecycleItem, boolean commit) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
Update one Logbook LifeCycle (in progress or committed
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
idOperation
-idLfc
-lifecycleItem
-commit
- if true update committed LFC else update in progress LFC- Throws:
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
updateLogbookLifeCycleObjectGroup
void updateLogbookLifeCycleObjectGroup(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleObjectGroupParameters lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
Update one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
idOperation
-idLfc
-lifecycleItem
-- Throws:
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
updateLogbookLifeCycleObjectGroup
void updateLogbookLifeCycleObjectGroup(java.lang.String idOperation, java.lang.String idLfc, LogbookLifeCycleObjectGroupParameters lifecycleItem, boolean commit) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
Update one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
idOperation
-idLfc
-lifecycleItem
-commit
- if true update is done on committed collection otherwise on inProcess one- Throws:
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
rollbackLogbookLifeCycleUnit
void rollbackLogbookLifeCycleUnit(java.lang.String idOperation, java.lang.String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
Rollback one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
idOperation
-lifecycleItem
-- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
rollbackLogbookLifeCycleObjectGroup
void rollbackLogbookLifeCycleObjectGroup(java.lang.String idOperation, java.lang.String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
Rollback one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
idOperation
-lifecycleItem
-- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
createBulkLogbookOperation
void createBulkLogbookOperation(LogbookOperationParameters... operationItems) throws LogbookDatabaseException, LogbookAlreadyExistsException
Create one Logbook Operation with already multiple sub-events- Parameters:
operationItems
- with first and next events to add/update- Throws:
java.lang.IllegalArgumentException
- if first argument is null or null mandatory parameters for allLogbookDatabaseException
LogbookAlreadyExistsException
-
createBulkLogbookLifeCycleUnit
void createBulkLogbookLifeCycleUnit(LogbookLifeCycleUnitParameters... lifecycleItems) throws LogbookDatabaseException, LogbookAlreadyExistsException
Create one Logbook LifeCycle with already multiple sub-events- Parameters:
lifecycleItems
- with first and next events to add/update- Throws:
java.lang.IllegalArgumentException
- if first argument is null or null mandatory parameters for allLogbookDatabaseException
LogbookAlreadyExistsException
-
createBulkLogbookLifeCycleObjectGroup
void createBulkLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupParameters... lifecycleItems) throws LogbookDatabaseException, LogbookAlreadyExistsException
Create one Logbook LifeCycle with already multiple sub-events- Parameters:
lifecycleItems
- with first and next events to add/update- Throws:
java.lang.IllegalArgumentException
- if first argument is null or null mandatory parameters for allLogbookDatabaseException
LogbookAlreadyExistsException
-
updateBulkLogbookOperation
void updateBulkLogbookOperation(LogbookOperationParameters... operationItems) throws LogbookDatabaseException, LogbookNotFoundException
Update one Logbook Operation with multiple sub-events
It adds this new entry within the very same Logbook Operaton entry in "events" array.- Parameters:
operationItems
-- Throws:
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory valuesLogbookDatabaseException
LogbookNotFoundException
-
updateBulkLogbookLifeCycleUnit
void updateBulkLogbookLifeCycleUnit(LogbookLifeCycleUnitParameters... lifecycleItems) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
Update one Logbook LifeCycle with multiple sub-events
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
lifecycleItems
-- Throws:
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory valuesLogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
-
updateBulkLogbookLifeCycleObjectGroup
void updateBulkLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupParameters... lifecycleItems) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
Update one Logbook LifeCycle with multiple sub-events
It adds this new entry within the very same Logbook LifeCycle entry in "events" array.- Parameters:
lifecycleItems
-- Throws:
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory valuesLogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
-
getLogbookOperations
VitamMongoCursor<LogbookOperation> getLogbookOperations(com.fasterxml.jackson.databind.JsonNode select, boolean sliced) throws LogbookDatabaseException, VitamDBException
-
getLogbookOperations
VitamMongoCursor<LogbookOperation> getLogbookOperations(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, boolean crossTenant) throws LogbookDatabaseException, VitamDBException
Get a list of Logbook Operation through Closeable MongoCursor- Parameters:
select
-sliced
- If true will return the first and last events only- Returns:
- the Closeable MongoCursor of LogbookOperation
- Throws:
java.lang.IllegalArgumentException
- if argument is null or emptyLogbookDatabaseException
LogbookNotFoundException
VitamDBException
-
getOneLogbookLifeCycle
LogbookLifeCycle<?> getOneLogbookLifeCycle(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, LogbookCollections collection) throws LogbookDatabaseException, LogbookNotFoundException, VitamDBException
Get a list of Logbook LifeCycles through Closeable MongoCursor- Parameters:
select
-sliced
-collection
- the collection on which the select operation will be done : Production collection (LIFECYCLE_UNIT/LIFECYCLE_OBJECT_GROUP) or Working collection (LIFECYCLE_UNIT_IN_PROCESS/LIFECYCLE_OBJECT_GROUP_IN_PROCESS)- Returns:
- the Closeable MongoCursor of LogbookLifeCycle
- Throws:
java.lang.IllegalArgumentException
- if argument is null or emptyLogbookDatabaseException
- if more than one resultLogbookNotFoundException
- if no resultVitamDBException
-
getLogbookLifeCycles
com.mongodb.client.MongoCursor<LogbookLifeCycle<?>> getLogbookLifeCycles(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, LogbookCollections collection) throws LogbookDatabaseException, LogbookNotFoundException, VitamDBException
Get a list of Logbook LifeCycles through Closeable MongoCursor- Parameters:
select
-sliced
-collection
- the collection on which the select operation will be done : Production collection (LIFECYCLE_UNIT/LIFECYCLE_OBJECT_GROUP) or Working collection (LIFECYCLE_UNIT_IN_PROCESS/LIFECYCLE_OBJECT_GROUP_IN_PROCESS)- Returns:
- the Closeable MongoCursor of LogbookLifeCycle
- Throws:
java.lang.IllegalArgumentException
- if argument is null or emptyLogbookDatabaseException
LogbookNotFoundException
VitamDBException
-
getLogbookLifeCycleUnitsFull
com.mongodb.client.MongoCursor<LogbookLifeCycleUnit> getLogbookLifeCycleUnitsFull(LogbookCollections collection, Select select) throws LogbookDatabaseException
Get a list of Logbook LifeCycle through Closeable MongoCursor- Parameters:
collection
- the collection on which the select operation will be done : Production collection (LIFECYCLE_UNIT) or Working collection (LIFECYCLE_UNIT_IN_PROCESS)select
-- Returns:
- the Closeable MongoCursor of LogbookLifeCycle
- Throws:
java.lang.IllegalArgumentException
- if argument is null or emptyLogbookDatabaseException
-
getLogbookLifeCycleObjectGroupsFull
com.mongodb.client.MongoCursor<LogbookLifeCycleObjectGroup> getLogbookLifeCycleObjectGroupsFull(LogbookCollections collection, Select select) throws LogbookDatabaseException
Get a list of Logbook LifeCycle through Closeable MongoCursor- Parameters:
collection
- the collection on which the select operation will be done : Production collection (LIFECYCLE_OBJECT_GROUP) or Working collection (LIFECYCLE_OBJECT_GROUP_IN_PROCESS)select
-- Returns:
- the Closeable MongoCursor of LogbookLifeCycle
- Throws:
java.lang.IllegalArgumentException
- if argument is null or emptyLogbookDatabaseException
-
deleteCollectionForTesting
void deleteCollectionForTesting(LogbookCollections collection) throws DatabaseException, LogbookExecutionException
Delete logbook collection- Parameters:
collection
- the logbook collection to delete- Throws:
DatabaseException
- thrown when error on deleteLogbookExecutionException
-
getLogbookLifeCycleUnitInProcess
LogbookLifeCycleUnitInProcess getLogbookLifeCycleUnitInProcess(java.lang.String unitId) throws LogbookDatabaseException, LogbookNotFoundException
Get Unit LifeCycle In process- Parameters:
unitId
- the unit id- Returns:
- the corresponding LogbookLifeCycleUnitInProcess if it exists
- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
getLogbookLifeCycleObjectGroupInProcess
LogbookLifeCycleObjectGroupInProcess getLogbookLifeCycleObjectGroupInProcess(java.lang.String objectGroupId) throws LogbookDatabaseException, LogbookNotFoundException
Gets ObjectGroup LifeCycle In process- Parameters:
objectGroupId
- the object group id- Returns:
- the corresponding LogbookLifeCycleObjectGroupInProcess if it exists
- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
createLogbookLifeCycleUnit
void createLogbookLifeCycleUnit(LogbookLifeCycleUnitInProcess logbookLifeCycleUnitInProcess) throws LogbookDatabaseException, LogbookAlreadyExistsException
Creates Unit lifeCycle from a LogbookLifeCycleUnitInProcess instance- Parameters:
logbookLifeCycleUnitInProcess
- a LogbookLifeCycleUnitInProcess instance- Throws:
LogbookAlreadyExistsException
LogbookDatabaseException
-
createLogbookLifeCycleObjectGroup
void createLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGrouptInProcess) throws LogbookDatabaseException, LogbookAlreadyExistsException
Creates ObjectGroup lifeCycle from a LogbookLifeCycleObjectGroupInProcess instance- Parameters:
logbookLifeCycleObjectGrouptInProcess
-- Throws:
LogbookAlreadyExistsException
LogbookDatabaseException
-
updateLogbookLifeCycleUnit
void updateLogbookLifeCycleUnit(LogbookLifeCycleUnitInProcess logbookLifeCycleUnitInProcess) throws LogbookDatabaseException, LogbookNotFoundException
Updates Unit lifeCycle from a LogbookLifeCycleUnitInProcess instance- Parameters:
logbookLifeCycleUnitInProcess
- a LogbookLifeCycleUnitInProcess instance- Throws:
LogbookDatabaseException
LogbookNotFoundException
-
updateLogbookLifeCycleObjectGroup
void updateLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGrouptInProcess) throws LogbookDatabaseException, LogbookNotFoundException
Updates ObjectGroup lifeCycle from a LogbookLifeCycleObjectGroupInProcess instance- Parameters:
logbookLifeCycleObjectGrouptInProcess
- a LogbookLifeCycleObjectGroupInProcess instance- Throws:
LogbookDatabaseException
LogbookNotFoundException
-
rollBackUnitLifeCyclesByOperation
void rollBackUnitLifeCyclesByOperation(java.lang.String operationId) throws LogbookNotFoundException, LogbookDatabaseException
Rolls back all the created unit lifeCycles during a given operation- Parameters:
operationId
- an operation id- Throws:
LogbookNotFoundException
LogbookDatabaseException
-
rollBackObjectGroupLifeCyclesByOperation
void rollBackObjectGroupLifeCyclesByOperation(java.lang.String operationId) throws LogbookNotFoundException, LogbookDatabaseException
Rolls back all the created objectGroups lifeCycles during a given operation- Parameters:
operationId
- an operation Id- Throws:
LogbookNotFoundException
LogbookDatabaseException
-
getLogbookLifeCyleUnitInProcessSize
long getLogbookLifeCyleUnitInProcessSize()
- Returns:
- the current number of LogbookLifeCyle created in working unit collection
-
getLogbookLifeCyleObjectGroupInProcessSize
long getLogbookLifeCyleObjectGroupInProcessSize()
- Returns:
- the current number of LogbookLifeCyle created in working objectGroup collection
-
existsLogbookLifeCycleUnitInProcess
boolean existsLogbookLifeCycleUnitInProcess(java.lang.String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
Check if one eventIdentifier for Lifecycle exists already- Parameters:
lifecycleItem
-- Returns:
- True if one LogbookLibeCycle exists with this id
- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
existsLogbookLifeCycleObjectGroupInProcess
boolean existsLogbookLifeCycleObjectGroupInProcess(java.lang.String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
Check if one eventIdentifier for Lifecycle exists already- Parameters:
lifecycleItem
-- Returns:
- True if one LogbookLibeCycle exists with this id
- Throws:
LogbookDatabaseException
LogbookNotFoundException
java.lang.IllegalArgumentException
- if parameter has null or empty mandatory values
-
getInfo
java.lang.String getInfo()
Get information on a Database- Returns:
- information on the database
-
bulkInsert
void bulkInsert(LogbookCollections lifecycleUnit, java.util.List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) throws DatabaseException
- Throws:
DatabaseException
-
updateLogbookLifeCycle
void updateLogbookLifeCycle(LogbookCollections collection, java.util.List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk)
-
-