Class ArchiveUnitUpdateUtils
- java.lang.Object
-
- fr.gouv.vitam.worker.common.utils.ArchiveUnitUpdateUtils
-
public class ArchiveUnitUpdateUtils extends java.lang.ObjectArchiveUnitUpdateUtils in order to deal with common update operations for units
-
-
Constructor Summary
Constructors Constructor Description ArchiveUnitUpdateUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommitLifecycle(java.lang.String processId, java.lang.String archiveUnitId, LogbookLifeCyclesClient logbookLifeCycleClient)Method used to commit lifecyclejava.lang.StringgetDiffMessageFor(com.fasterxml.jackson.databind.JsonNode diff, java.lang.String unitId)Common method to get the diff messagevoidlogLifecycle(WorkerParameters params, java.lang.String auGuid, StatusCode code, java.lang.String evDetData, LogbookLifeCyclesClient logbookLifeCycleClient)Method used to log lifecycles unitbooleanupdateCategoryRules(com.fasterxml.jackson.databind.node.ArrayNode rulesForCategory, java.util.List<com.fasterxml.jackson.databind.JsonNode> listRulesByType, UpdateMultiQuery query, java.lang.String key)Method used to get update query for an archive unit
-
-
-
Method Detail
-
updateCategoryRules
public boolean updateCategoryRules(com.fasterxml.jackson.databind.node.ArrayNode rulesForCategory, java.util.List<com.fasterxml.jackson.databind.JsonNode> listRulesByType, UpdateMultiQuery query, java.lang.String key) throws ProcessingExceptionMethod used to get update query for an archive unit- Parameters:
rulesForCategory-listRulesByType-query-key-- Returns:
- Throws:
ProcessingException
-
getDiffMessageFor
public java.lang.String getDiffMessageFor(com.fasterxml.jackson.databind.JsonNode diff, java.lang.String unitId) throws InvalidParseOperationExceptionCommon method to get the diff message- Parameters:
diff-unitId-- Returns:
- Throws:
InvalidParseOperationException
-
logLifecycle
public void logLifecycle(WorkerParameters params, java.lang.String auGuid, StatusCode code, java.lang.String evDetData, LogbookLifeCyclesClient logbookLifeCycleClient)
Method used to log lifecycles unit- Parameters:
params-auGuid-code-evDetData-logbookLifeCycleClient-
-
commitLifecycle
public void commitLifecycle(java.lang.String processId, java.lang.String archiveUnitId, LogbookLifeCyclesClient logbookLifeCycleClient)Method used to commit lifecycle- Parameters:
processId-archiveUnitId-logbookLifeCycleClient-
-
-