public interface LogbookLifeCycles
| Modifier and Type | Method and Description |
|---|---|
void |
bulk(LogbookCollections collections,
String idOp,
List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)
Bulk method
|
void |
commitObjectGroup(String idOperation,
String idLc)
Commits ObjectGroup lifeCycle
|
void |
commitUnit(String idOperation,
String idLc)
Commits Unit lifeCycle
|
void |
createBulkLogbookLifecycle(String idOp,
LogbookLifeCycleParameters[] lifecycleArray)
Create one Logbook Lifecycle with already multiple sub-events
|
void |
createObjectGroup(String idOperation,
String idLc,
LogbookLifeCycleObjectGroupParameters parameters)
Create and insert logbook LifeCycle entries
|
void |
createUnit(String idOperation,
String idLc,
LogbookLifeCycleUnitParameters parameters)
Create and insert logbook LifeCycle entries
|
void |
deleteLifeCycleObjectGroups(List<String> objectGroupIds)
delete LifeCycle ObjectGroups
|
void |
deleteLifeCycleUnits(List<String> unitsIdentifier)
delete LifeCycle Units
|
LifeCycleStatusCode |
getObjectGroupLifeCycleStatus(String objectGroupId)
Returns the LifeCycle Status for a given objectGroup Id
|
com.fasterxml.jackson.databind.JsonNode |
getRawObjectGroupLifeCycleById(String id)
returns the raw version of object group life cycle
|
List<com.fasterxml.jackson.databind.JsonNode> |
getRawObjectGroupLifeCycleByIds(List<String> ids)
returns the raw version of object group life cycle
|
List<com.fasterxml.jackson.databind.JsonNode> |
getRawObjectGroupLifecyclesByLastPersistedDate(String startDate,
String endDate,
int limit)
Gets a list of raw object group life cycles by request
|
com.fasterxml.jackson.databind.JsonNode |
getRawUnitLifeCycleById(String id)
returns the raw version of unit life cycle
|
List<com.fasterxml.jackson.databind.JsonNode> |
getRawUnitLifeCycleByIds(List<String> ids)
returns the raw version of unit life cycle
|
List<com.fasterxml.jackson.databind.JsonNode> |
getRawUnitLifecyclesByLastPersistedDate(String startDate,
String endDate,
int limit)
Gets a list of raw unit life cycles by request
|
LifeCycleStatusCode |
getUnitLifeCycleStatus(String unitId)
Returns the LifeCycle Status for a given unit Id
|
void |
rollbackObjectGroup(String idOperation,
String idLc)
Rollback logbook LifeCycle entries
|
void |
rollBackObjectGroupsByOperation(String idOperation)
Removes the created object groups lifeCycles during a given operation
|
void |
rollbackUnit(String idOperation,
String idLc)
Rollback logbook LifeCycle entries
|
void |
rollBackUnitsByOperation(String idOperation)
Removes the created unit lifeCycles during a given operation
|
LogbookLifeCycle |
selectLifeCycleById(String lifecycleId,
com.fasterxml.jackson.databind.JsonNode queryDsl,
boolean sliced,
LogbookCollections collection)
Selects life cycle entry
|
List<LogbookLifeCycle> |
selectLifeCycles(com.fasterxml.jackson.databind.JsonNode select,
boolean sliced,
LogbookCollections collection)
Selects life cycle entries
|
void |
updateBulkLogbookLifecycle(String idOp,
LogbookLifeCycleParameters[] lifecycleArray)
Update one Logbook Lifecycle with multiple sub-events
It adds this new entry within the very same Logbook Lifecycle entry in "events" array. |
void |
updateLogbookLifeCycleBulk(LogbookCollections lifecycleUnitInProcess,
List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk)
updateLogbookLifeCycleBulk
|
void |
updateObjectGroup(String idOperation,
String idLc,
LogbookLifeCycleObjectGroupParameters parameters)
Update logbook LifeCycle entries
|
void |
updateObjectGroup(String idOperation,
String idLc,
LogbookLifeCycleObjectGroupParameters parameters,
boolean commit)
Update logbook LifeCycle entries
|
void |
updateUnit(String idOperation,
String idLc,
LogbookLifeCycleUnitParameters parameters)
Update logbook LifeCycle entries
|
void |
updateUnit(String idOperation,
String idLc,
LogbookLifeCycleUnitParameters parameters,
boolean commit)
Update logbook LifeCycle entries committed or in progress
|
void createUnit(String idOperation, String idLc, LogbookLifeCycleUnitParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException
idOperation - the operation identifieridLc - the lifecycle unit identifierparameters - the logbook lifecycle parametersLogbookAlreadyExistsException - if an LifeCycle with the same eventIdentifierProcess and outcome="Started"
already existsLogbookDatabaseException - if errors occur while connecting or writing to the databasevoid createObjectGroup(String idOperation, String idLc, LogbookLifeCycleObjectGroupParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException
idOperation - the operation identifieridLc - the lifecycle identifierparameters - the logbook lifecycle parametersLogbookAlreadyExistsException - if an LifeCycle with the same eventIdentifierProcess and outcome="Started"
already existsLogbookDatabaseException - if errors occur while connecting or writing to the databasevoid updateUnit(String idOperation, String idLc, LogbookLifeCycleUnitParameters parameters) throws LogbookNotFoundException, LogbookDatabaseException, LogbookAlreadyExistsException
idOperation - the operation identifieridLc - the lifecycle identifierparameters - the logbook lifecycle parametersLogbookNotFoundException - if no LifeCycle with the same eventIdentifierProcess existsLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookAlreadyExistsException - if the entry already existsvoid updateUnit(String idOperation, String idLc, LogbookLifeCycleUnitParameters parameters, boolean commit) throws LogbookNotFoundException, LogbookDatabaseException, LogbookAlreadyExistsException
idOperation - the operation identifieridLc - the lifecycle identifierparameters - the logbook lifecycle parameterscommit - if false update in progress collection else update committed LFCLogbookNotFoundException - if no LifeCycle with the same eventIdentifierProcess existsLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookAlreadyExistsException - if the entry already existsvoid updateObjectGroup(String idOperation, String idLc, LogbookLifeCycleObjectGroupParameters parameters) throws LogbookNotFoundException, LogbookDatabaseException, LogbookAlreadyExistsException
idOperation - the operation identifieridLc - the lifecycle identifierparameters - the logbook lifecycle parametersLogbookNotFoundException - if no LifeCycle with the same eventIdentifierProcess existsLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookAlreadyExistsException - if the entry already existsvoid updateObjectGroup(String idOperation, String idLc, LogbookLifeCycleObjectGroupParameters parameters, boolean commit) throws LogbookNotFoundException, LogbookDatabaseException, LogbookAlreadyExistsException
idOperation - the operation identifieridLc - the lifecycle identifierparameters - the logbook lifecycle parameterscommit - if true update is done on committed collection otherwise on inProcess oneLogbookNotFoundException - if no LifeCycle with the same eventIdentifierProcess existsLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookAlreadyExistsException - if the entry already existsList<LogbookLifeCycle> selectLifeCycles(com.fasterxml.jackson.databind.JsonNode select, boolean sliced, LogbookCollections collection) throws LogbookDatabaseException, LogbookNotFoundException, InvalidParseOperationException, VitamDBException
select - the select request in format of JsonNodesliced - the boolean sliced filtering events or notcollection - the collection on which the select operation will be done : Production collection
(LIFECYCLE_OBJECT_GROUP/LIFECYCLE_UNIT) or Working collection (LIFECYCLE_OBJECT_GROUP_IN_PROCESS/LIFECYCLE_UNIT_IN_PROCESS)LogbookNotFoundException - if no LifeCycle selected cannot be foundLogbookDatabaseException - if errors occur while connecting or writing to the databaseInvalidParseOperationException - if invalid parse for selecting the LifeCycleVitamDBException - in case a desynchro is recorded between Mongo and ESLogbookLifeCycle selectLifeCycleById(String lifecycleId, com.fasterxml.jackson.databind.JsonNode queryDsl, boolean sliced, LogbookCollections collection) throws LogbookDatabaseException, LogbookNotFoundException, InvalidParseOperationException, VitamDBException, InvalidCreateOperationException
lifecycleId - the lifecycle idqueryDsl - the select projection in format of JsonNodesliced - the boolean sliced filtering events or notcollection - the collection on which the select operation will be done : Production collection
(LIFECYCLE_OBJECT_GROUP/LIFECYCLE_UNIT) or Working collection (LIFECYCLE_OBJECT_GROUP_IN_PROCESS/LIFECYCLE_UNIT_IN_PROCESS)LogbookNotFoundException - if no LifeCycle selected cannot be foundLogbookDatabaseException - if errors occur while connecting or writing to the databaseInvalidParseOperationException - if invalid parse for selecting the LifeCycleInvalidParseOperationException - if invalid parse for selecting the LifeCycleVitamDBException - in case a desynchro is recorded between Mongo and ESInvalidCreateOperationExceptionvoid rollbackUnit(String idOperation, String idLc) throws LogbookNotFoundException, LogbookDatabaseException
idOperation - the operation identifieridLc - the lifecycle identifierLogbookNotFoundException - if no LifeCycle with the same eventIdentifierProcess existsLogbookDatabaseException - if errors occur while connecting or writing to the databasevoid rollbackObjectGroup(String idOperation, String idLc) throws LogbookNotFoundException, LogbookDatabaseException
idOperation - the operation identifieridLc - the lifecycle identifierLogbookNotFoundException - if no LifeCycle with the same eventIdentifierProcess existsLogbookDatabaseException - if errors occur while connecting or writing to the databasevoid createBulkLogbookLifecycle(String idOp, LogbookLifeCycleParameters[] lifecycleArray) throws LogbookDatabaseException, LogbookAlreadyExistsException
idOp - Operation IdlifecycleArray - with first and next events to add/updateIllegalArgumentException - if first argument is null or null mandatory parameters for allLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookAlreadyExistsException - if LifeCycle already existsvoid updateBulkLogbookLifecycle(String idOp, LogbookLifeCycleParameters[] lifecycleArray) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
idOp - Operation IdlifecycleArray - containing all Lifecycle Logbook in orderIllegalArgumentException - if parameter has null or empty mandatory valuesLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if LifeCycle cannot be foundLogbookAlreadyExistsException - if LifeCycle already existsvoid commitUnit(String idOperation, String idLc) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
idOperation - the operation identifieridLc - the lifecycle identifierLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if LifeCycle cannot be foundLogbookAlreadyExistsException - if LifeCycle already existsvoid commitObjectGroup(String idOperation, String idLc) throws LogbookDatabaseException, LogbookNotFoundException, LogbookAlreadyExistsException
idOperation - the operation identifieridLc - the lifecycle identifierLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if LifeCycle cannot be foundLogbookAlreadyExistsException - if LifeCycle already existsvoid rollBackUnitsByOperation(String idOperation) throws LogbookNotFoundException, LogbookDatabaseException
idOperation - the operation idLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if LifeCycle cannot be foundvoid rollBackObjectGroupsByOperation(String idOperation) throws LogbookNotFoundException, LogbookDatabaseException
idOperation - the operation idLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if LifeCycle cannot be foundLifeCycleStatusCode getUnitLifeCycleStatus(String unitId) throws LogbookDatabaseException, LogbookNotFoundException
unitId - the unit IdLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if LifeCycle cannot be foundLifeCycleStatusCode getObjectGroupLifeCycleStatus(String objectGroupId) throws LogbookDatabaseException, LogbookNotFoundException
objectGroupId - the objectGroup IdLogbookDatabaseException - if errors occur while connecting or writing to the databaseLogbookNotFoundException - if LifeCycle cannot be foundvoid bulk(LogbookCollections collections, String idOp, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) throws DatabaseException
collections - the logbook collectionsidOp - operation identifierlogbookLifeCycleModels - lifecycles to be createdDatabaseException - if database could not be reachedList<com.fasterxml.jackson.databind.JsonNode> getRawUnitLifecyclesByLastPersistedDate(String startDate, String endDate, int limit) throws InvalidParseOperationException
startDate - the selection start dateendDate - the selection end datelimit - the max limitInvalidParseOperationExceptionList<com.fasterxml.jackson.databind.JsonNode> getRawObjectGroupLifecyclesByLastPersistedDate(String startDate, String endDate, int limit) throws InvalidParseOperationException
startDate - the selection start dateendDate - the selection end datelimit - the max limitInvalidParseOperationExceptioncom.fasterxml.jackson.databind.JsonNode getRawUnitLifeCycleById(String id) throws LogbookNotFoundException, InvalidParseOperationException
id - the id to retrieveLogbookNotFoundExceptionInvalidParseOperationExceptionList<com.fasterxml.jackson.databind.JsonNode> getRawUnitLifeCycleByIds(List<String> ids) throws LogbookNotFoundException, InvalidParseOperationException
ids - the ids to retrieveLogbookNotFoundExceptionInvalidParseOperationExceptioncom.fasterxml.jackson.databind.JsonNode getRawObjectGroupLifeCycleById(String id) throws LogbookNotFoundException, InvalidParseOperationException
id - the id to retrieveLogbookNotFoundExceptionInvalidParseOperationExceptionList<com.fasterxml.jackson.databind.JsonNode> getRawObjectGroupLifeCycleByIds(List<String> ids) throws LogbookNotFoundException, InvalidParseOperationException
ids - the ids to retrieveLogbookNotFoundExceptionInvalidParseOperationExceptionvoid updateLogbookLifeCycleBulk(LogbookCollections lifecycleUnitInProcess, List<LogbookLifeCycleParametersBulk> logbookLifeCycleParametersBulk)
lifecycleUnitInProcess - lifecycleUnitInProcesslogbookLifeCycleParametersBulk - logbookLifeCycleParametersBulkvoid deleteLifeCycleObjectGroups(List<String> objectGroupIds) throws DatabaseException
objectGroupIds - objectGroupIdsDatabaseException - DatabaseExceptionvoid deleteLifeCycleUnits(List<String> unitsIdentifier) throws DatabaseException
unitsIdentifier - units lfc IdentifierDatabaseException - DatabaseExceptionCopyright © 2019 Vitam. All rights reserved.