public final class LogbookMongoDbAccessImpl extends MongoDbAccess implements LogbookDbAccess
Constructor and Description |
---|
LogbookMongoDbAccessImpl(com.mongodb.MongoClient mongoClient,
String dbname,
boolean recreate,
LogbookElasticsearchAccess esClient,
List<Integer> tenants,
LogbookTransformData logbookTransformData)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bulk(LogbookCollections lifecycleUnit,
List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) |
void |
close()
Close database access
|
void |
createBulkLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupParameters... lifecycleItems)
Create one Logbook LifeCycle with already multiple sub-events
|
void |
createBulkLogbookLifeCycleUnit(LogbookLifeCycleUnitParameters... lifecycleItems)
Create one Logbook LifeCycle with already multiple sub-events
|
void |
createBulkLogbookOperation(LogbookOperationParameters... operationItems)
Create one Logbook Operation with already multiple sub-events
|
void |
createLogbookLifeCycleForUpdate(LogbookCollections inProccessCollection,
LogbookLifeCycle logbookLifeCycleInProd) |
void |
createLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGroupInProcess)
Creates ObjectGroup lifeCycle from a LogbookLifeCycleObjectGroupInProcess instance
|
void |
createLogbookLifeCycleObjectGroup(String idOperation,
LogbookLifeCycleObjectGroupParameters lifecycleItem)
Create one Logbook LifeCycle object group
|
void |
createLogbookLifeCycleUnit(LogbookLifeCycleUnitInProcess logbookLifeCycleUnitInProcess)
Creates Unit lifeCycle from a LogbookLifeCycleUnitInProcess instance
|
void |
createLogbookLifeCycleUnit(String idOperation,
LogbookLifeCycleUnitParameters lifecycleItem)
Create one Logbook LifeCycle unit
|
void |
createLogbookOperation(LogbookOperationParameters operationItem)
Create one Logbook Operation
|
void |
deleteCollection(LogbookCollections collection)
Delete logbook collection
|
boolean |
existsLogbookLifeCycleObjectGroup(String objectGroupId)
Check if one eventIdentifier for Lifecycle exists already
|
boolean |
existsLogbookLifeCycleObjectGroupInProcess(String objectGroupId)
Check if one eventIdentifier for Lifecycle exists already
|
boolean |
existsLogbookLifeCycleUnit(String unitId)
Check if one eventIdentifier for Lifecycle exists already
|
boolean |
existsLogbookLifeCycleUnitInProcess(String unitId)
Check if one eventIdentifier for Lifecycle exists already
|
boolean |
existsLogbookOperation(String operationItem)
Check if one eventIdentifier for Operation exists already
|
LogbookElasticsearchAccess |
getEsClient() |
String |
getInfo()
Get information on a Database
|
LogbookLifeCycleObjectGroup |
getLogbookLifeCycleObjectGroup(String objectGroupId)
Get one Lifecycle
|
LogbookLifeCycleObjectGroup |
getLogbookLifeCycleObjectGroup(String idOperation,
String objectGroupId)
Get one Lifecycle
|
LogbookLifeCycleObjectGroupInProcess |
getLogbookLifeCycleObjectGroupInProcess(String objectGroupId)
Gets ObjectGroup LifeCycle In process
|
com.mongodb.client.MongoCursor<LogbookLifeCycle> |
getLogbookLifeCycleObjectGroups(com.fasterxml.jackson.databind.JsonNode select,
boolean sliced,
LogbookCollections collection)
Get a list of Logbook LifeCycle through Closeable MongoCursor
|
com.mongodb.client.MongoCursor<LogbookLifeCycleObjectGroup> |
getLogbookLifeCycleObjectGroupsFull(LogbookCollections collection,
Select select)
Get a list of Logbook LifeCycle through Closeable MongoCursor
|
LogbookLifeCycle |
getLogbookLifeCycleUnit(com.fasterxml.jackson.databind.JsonNode queryDsl,
LogbookCollections collection)
Get one Lifecycle
|
LogbookLifeCycleUnit |
getLogbookLifeCycleUnit(String unitId)
Get one Lifecycle
|
LogbookLifeCycleUnit |
getLogbookLifeCycleUnit(String idOperation,
String unitId)
Get one Lifecycle
|
LogbookLifeCycleUnitInProcess |
getLogbookLifeCycleUnitInProcess(String unitId)
Get Unit LifeCycle In process
|
com.mongodb.client.MongoCursor<LogbookLifeCycle> |
getLogbookLifeCycleUnits(com.fasterxml.jackson.databind.JsonNode select,
boolean sliced,
LogbookCollections collection)
Get a list of Logbook LifeCycle through Closeable MongoCursor
|
com.mongodb.client.MongoCursor<LogbookLifeCycleUnit> |
getLogbookLifeCycleUnitsFull(LogbookCollections collection,
Select select)
Get a list of Logbook LifeCycle through Closeable MongoCursor
|
long |
getLogbookLifeCyleObjectGroupInProcessSize() |
long |
getLogbookLifeCyleObjectGroupSize() |
long |
getLogbookLifeCyleUnitInProcessSize() |
long |
getLogbookLifeCyleUnitSize() |
LogbookOperation |
getLogbookOperation(String eventIdentifierProcess)
Get one Operation
|
com.mongodb.client.MongoCursor<LogbookOperation> |
getLogbookOperations(com.fasterxml.jackson.databind.JsonNode select,
boolean sliced)
Get a list of Logbook Operation through Closeable MongoCursor
|
long |
getLogbookOperationSize() |
void |
rollbackLogbookLifeCycleObjectGroup(String idOperation,
String lifecycleItem)
Rollback one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array. |
void |
rollbackLogbookLifeCycleUnit(String idOperation,
String lifecycleItem)
Rollback one Logbook LifeCycle
It adds this new entry within the very same Logbook LifeCycle entry in "events" array. |
void |
rollBackObjectGroupLifeCyclesByOperation(String operationId)
Rolls back all the created objectGroups lifeCycles during a given operation
|
void |
rollBackUnitLifeCyclesByOperation(String operationId)
Rolls back all the created unit lifeCycles during a given operation
|
void |
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 |
updateLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGrouptInProcess)
Updates ObjectGroup lifeCycle from a LogbookLifeCycleObjectGroupInProcess instance
|
void |
updateLogbookLifeCycleObjectGroup(String idOperation,
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(String idOperation,
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 instance
|
void |
updateLogbookLifeCycleUnit(String idOperation,
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(String idOperation,
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. |
checkConnection, createMongoClient, getMongoAdmin, getMongoClient, getMongoDatabase, setDatabase, setMongoAdmin, setMongoClient, setMongoDatabase
public LogbookMongoDbAccessImpl(com.mongodb.MongoClient mongoClient, String dbname, boolean recreate, LogbookElasticsearchAccess esClient, List<Integer> tenants, LogbookTransformData logbookTransformData)
mongoClient
- MongoClientdbname
- MongoDB database namerecreate
- True to recreate the indexesClient
- elastic search clienttenants
- the tenants listIllegalArgumentException
- if mongoClient or dbname is nullpublic final void close()
close
in interface LogbookDbAccess
close
in class MongoDbAccess
public String getInfo()
DatabaseConnection
getInfo
in interface DatabaseConnection
getInfo
in interface LogbookDbAccess
getInfo
in class MongoDbAccess
public LogbookElasticsearchAccess getEsClient()
public final long getLogbookOperationSize()
getLogbookOperationSize
in interface LogbookDbAccess
public final long getLogbookLifeCyleUnitSize()
getLogbookLifeCyleUnitSize
in interface LogbookDbAccess
public final long getLogbookLifeCyleObjectGroupSize() throws LogbookDatabaseException, LogbookNotFoundException
getLogbookLifeCyleObjectGroupSize
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public long getLogbookLifeCyleUnitInProcessSize() throws LogbookDatabaseException, LogbookNotFoundException
getLogbookLifeCyleUnitInProcessSize
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public long getLogbookLifeCyleObjectGroupInProcessSize() throws LogbookDatabaseException, LogbookNotFoundException
getLogbookLifeCyleObjectGroupInProcessSize
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public com.mongodb.client.MongoCursor<LogbookOperation> getLogbookOperations(com.fasterxml.jackson.databind.JsonNode select, boolean sliced) throws LogbookDatabaseException, VitamDBException
LogbookDbAccess
getLogbookOperations
in interface LogbookDbAccess
sliced
- If true will return the first and last events onlyLogbookDatabaseException
VitamDBException
public com.mongodb.client.MongoCursor<LogbookLifeCycle> getLogbookLifeCycleUnits(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, LogbookCollections collection) throws LogbookDatabaseException, VitamDBException
LogbookDbAccess
getLogbookLifeCycleUnits
in interface LogbookDbAccess
collection
- the collection on which the select operation will be done : Production collection
(LIFECYCLE_UNIT) or Working collection (LIFECYCLE_UNIT_IN_PROCESS)LogbookDatabaseException
VitamDBException
public com.mongodb.client.MongoCursor<LogbookLifeCycleUnit> getLogbookLifeCycleUnitsFull(LogbookCollections collection, Select select) throws LogbookDatabaseException
LogbookDbAccess
getLogbookLifeCycleUnitsFull
in interface LogbookDbAccess
collection
- the collection on which the select operation will be done : Production collection
(LIFECYCLE_UNIT) or Working collection (LIFECYCLE_UNIT_IN_PROCESS)LogbookDatabaseException
public com.mongodb.client.MongoCursor<LogbookLifeCycle> getLogbookLifeCycleObjectGroups(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, LogbookCollections collection) throws LogbookDatabaseException, LogbookNotFoundException, VitamDBException
LogbookDbAccess
getLogbookLifeCycleObjectGroups
in interface LogbookDbAccess
collection
- the collection on which the select operation will be done : Production collection
(LIFECYCLE_OBJECT_GROUP) or Working collection (LIFECYCLE_OBJECT_GROUP_IN_PROCESS)LogbookDatabaseException
LogbookNotFoundException
VitamDBException
public com.mongodb.client.MongoCursor<LogbookLifeCycleObjectGroup> getLogbookLifeCycleObjectGroupsFull(LogbookCollections collection, Select select) throws LogbookDatabaseException
LogbookDbAccess
getLogbookLifeCycleObjectGroupsFull
in interface LogbookDbAccess
collection
- the collection on which the select operation will be done : Production collection
(LIFECYCLE_OBJECT_GROUP) or Working collection (LIFECYCLE_OBJECT_GROUP_IN_PROCESS)LogbookDatabaseException
public final boolean existsLogbookOperation(String operationItem) throws LogbookDatabaseException
LogbookDbAccess
existsLogbookOperation
in interface LogbookDbAccess
LogbookDatabaseException
public boolean existsLogbookLifeCycleUnit(String unitId) throws LogbookDatabaseException
LogbookDbAccess
existsLogbookLifeCycleUnit
in interface LogbookDbAccess
LogbookDatabaseException
public boolean existsLogbookLifeCycleObjectGroup(String objectGroupId) throws LogbookDatabaseException
LogbookDbAccess
existsLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
public LogbookOperation getLogbookOperation(String eventIdentifierProcess) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookOperation
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public LogbookLifeCycleUnit getLogbookLifeCycleUnit(String unitId) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookLifeCycleUnit
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public LogbookLifeCycle getLogbookLifeCycleUnit(com.fasterxml.jackson.databind.JsonNode queryDsl, LogbookCollections collection) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookLifeCycleUnit
in interface LogbookDbAccess
queryDsl
- the DSL querycollection
- the collection on which the select operation will be done : Production collection
(LIFECYCLE_UNIT) or Working collection (LIFECYCLE_UNIT_IN_PROCESS)LogbookDatabaseException
LogbookNotFoundException
public LogbookLifeCycleObjectGroup getLogbookLifeCycleObjectGroup(String objectGroupId) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public LogbookLifeCycleUnit getLogbookLifeCycleUnit(String idOperation, String unitId) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookLifeCycleUnit
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public LogbookLifeCycleObjectGroup getLogbookLifeCycleObjectGroup(String idOperation, String objectGroupId) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public void createLogbookOperation(LogbookOperationParameters operationItem) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createLogbookOperation
in interface LogbookDbAccess
LogbookDatabaseException
LogbookAlreadyExistsException
public void createLogbookLifeCycleUnit(String idOperation, LogbookLifeCycleUnitParameters lifecycleItem) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createLogbookLifeCycleUnit
in interface LogbookDbAccess
LogbookDatabaseException
LogbookAlreadyExistsException
public void createLogbookLifeCycleObjectGroup(String idOperation, LogbookLifeCycleObjectGroupParameters lifecycleItem) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
LogbookAlreadyExistsException
public void updateLogbookOperation(LogbookOperationParameters operationItem) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
updateLogbookOperation
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public void updateLogbookLifeCycleUnit(String idOperation, String idLfc, LogbookLifeCycleUnitParameters lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
LogbookDbAccess
updateLogbookLifeCycleUnit
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
public void updateLogbookLifeCycleUnit(String idOperation, String idLfc, LogbookLifeCycleUnitParameters lifecycleItem, boolean commit) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
LogbookDbAccess
updateLogbookLifeCycleUnit
in interface LogbookDbAccess
commit
- if true update committed LFC else update in progress LFCLogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
public void updateLogbookLifeCycleObjectGroup(String idOperation, String idLfc, LogbookLifeCycleObjectGroupParameters lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
LogbookDbAccess
updateLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
public void updateLogbookLifeCycleObjectGroup(String idOperation, String idLfc, LogbookLifeCycleObjectGroupParameters lifecycleItem, boolean commit) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
LogbookDbAccess
updateLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
commit
- if true update is done on committed collection otherwise on inProcess oneLogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
public void rollbackLogbookLifeCycleUnit(String idOperation, String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
rollbackLogbookLifeCycleUnit
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public void rollbackLogbookLifeCycleObjectGroup(String idOperation, String lifecycleItem) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
rollbackLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public final void createBulkLogbookOperation(LogbookOperationParameters... operationItems) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createBulkLogbookOperation
in interface LogbookDbAccess
operationItems
- with first and next events to add/updateLogbookDatabaseException
LogbookAlreadyExistsException
public final void createBulkLogbookLifeCycleUnit(LogbookLifeCycleUnitParameters... lifecycleItems) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createBulkLogbookLifeCycleUnit
in interface LogbookDbAccess
lifecycleItems
- with first and next events to add/updateLogbookDatabaseException
LogbookAlreadyExistsException
public final void createBulkLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupParameters... lifecycleItems) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createBulkLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
lifecycleItems
- with first and next events to add/updateLogbookDatabaseException
LogbookAlreadyExistsException
public final void updateBulkLogbookOperation(LogbookOperationParameters... operationItems) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
updateBulkLogbookOperation
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
public void updateBulkLogbookLifeCycleUnit(LogbookLifeCycleUnitParameters... lifecycleItems) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
LogbookDbAccess
updateBulkLogbookLifeCycleUnit
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
public void updateBulkLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupParameters... lifecycleItems) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
LogbookDbAccess
updateBulkLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
LogbookNotFoundException
LogbookAlreadyExistsException
public void deleteCollection(LogbookCollections collection) throws DatabaseException
LogbookDbAccess
deleteCollection
in interface LogbookDbAccess
collection
- the logbook collection to deleteDatabaseException
- thrown when error on deletepublic LogbookLifeCycleUnitInProcess getLogbookLifeCycleUnitInProcess(String unitId) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookLifeCycleUnitInProcess
in interface LogbookDbAccess
unitId
- the unit idLogbookDatabaseException
LogbookNotFoundException
public LogbookLifeCycleObjectGroupInProcess getLogbookLifeCycleObjectGroupInProcess(String objectGroupId) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
getLogbookLifeCycleObjectGroupInProcess
in interface LogbookDbAccess
objectGroupId
- the object group idLogbookDatabaseException
LogbookNotFoundException
public void createLogbookLifeCycleUnit(LogbookLifeCycleUnitInProcess logbookLifeCycleUnitInProcess) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createLogbookLifeCycleUnit
in interface LogbookDbAccess
logbookLifeCycleUnitInProcess
- a LogbookLifeCycleUnitInProcess instanceLogbookDatabaseException
LogbookAlreadyExistsException
public void createLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGroupInProcess) throws LogbookDatabaseException, LogbookAlreadyExistsException
LogbookDbAccess
createLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
LogbookDatabaseException
LogbookAlreadyExistsException
public void createLogbookLifeCycleForUpdate(LogbookCollections inProccessCollection, LogbookLifeCycle logbookLifeCycleInProd) throws LogbookDatabaseException, LogbookAlreadyExistsException
inProccessCollection
- collection of logbook in processlogbookLifeCycleInProd
- to create logbook lfc Unit/GroupObjectLogbookDatabaseException
- if mongo execution errorLogbookAlreadyExistsException
- if duplicated key in mongopublic void updateLogbookLifeCycleUnit(LogbookLifeCycleUnitInProcess logbookLifeCycleUnitInProcess) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
updateLogbookLifeCycleUnit
in interface LogbookDbAccess
logbookLifeCycleUnitInProcess
- a LogbookLifeCycleUnitInProcess instanceLogbookDatabaseException
LogbookNotFoundException
public void updateLogbookLifeCycleObjectGroup(LogbookLifeCycleObjectGroupInProcess logbookLifeCycleObjectGrouptInProcess) throws LogbookDatabaseException, LogbookNotFoundException
LogbookDbAccess
updateLogbookLifeCycleObjectGroup
in interface LogbookDbAccess
logbookLifeCycleObjectGrouptInProcess
- a LogbookLifeCycleObjectGroupInProcess instanceLogbookDatabaseException
LogbookNotFoundException
public void rollBackUnitLifeCyclesByOperation(String operationId) throws LogbookNotFoundException, LogbookDatabaseException
LogbookDbAccess
rollBackUnitLifeCyclesByOperation
in interface LogbookDbAccess
operationId
- an operation idLogbookNotFoundException
LogbookDatabaseException
public void rollBackObjectGroupLifeCyclesByOperation(String operationId) throws LogbookNotFoundException, LogbookDatabaseException
LogbookDbAccess
rollBackObjectGroupLifeCyclesByOperation
in interface LogbookDbAccess
operationId
- an operation IdLogbookNotFoundException
LogbookDatabaseException
public boolean existsLogbookLifeCycleUnitInProcess(String unitId) throws LogbookDatabaseException
LogbookDbAccess
existsLogbookLifeCycleUnitInProcess
in interface LogbookDbAccess
LogbookDatabaseException
public boolean existsLogbookLifeCycleObjectGroupInProcess(String objectGroupId) throws LogbookDatabaseException
LogbookDbAccess
existsLogbookLifeCycleObjectGroupInProcess
in interface LogbookDbAccess
LogbookDatabaseException
public void bulk(LogbookCollections lifecycleUnit, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) throws DatabaseException
bulk
in interface LogbookDbAccess
DatabaseException
Copyright © 2018 Vitam. All rights reserved.