public class ArchiveUnitUpdateUtils extends Object
Constructor and Description |
---|
ArchiveUnitUpdateUtils() |
Modifier and Type | Method and Description |
---|---|
void |
commitLifecycle(String processId,
String archiveUnitId,
LogbookLifeCyclesClient logbookLifeCycleClient)
Method used to commit lifecycle
|
String |
getDiffMessageFor(com.fasterxml.jackson.databind.JsonNode diff,
String unitId)
Common method to get the diff message
|
void |
logLifecycle(WorkerParameters params,
String auGuid,
StatusCode code,
String evDetData,
LogbookLifeCyclesClient logbookLifeCycleClient)
Method used to log lifecycles unit
|
boolean |
updateCategoryRules(com.fasterxml.jackson.databind.node.ArrayNode rulesForCategory,
List<com.fasterxml.jackson.databind.JsonNode> listRulesByType,
UpdateMultiQuery query,
String key)
Method used to get update query for an archive unit
|
public boolean updateCategoryRules(com.fasterxml.jackson.databind.node.ArrayNode rulesForCategory, List<com.fasterxml.jackson.databind.JsonNode> listRulesByType, UpdateMultiQuery query, String key) throws ProcessingException
rulesForCategory
- listRulesByType
- query
- key
- ProcessingException
public String getDiffMessageFor(com.fasterxml.jackson.databind.JsonNode diff, String unitId) throws InvalidParseOperationException
diff
- unitId
- InvalidParseOperationException
public void logLifecycle(WorkerParameters params, String auGuid, StatusCode code, String evDetData, LogbookLifeCyclesClient logbookLifeCycleClient)
params
- auGuid
- code
- evDetData
- logbookLifeCycleClient
- public void commitLifecycle(String processId, String archiveUnitId, LogbookLifeCyclesClient logbookLifeCycleClient)
processId
- archiveUnitId
- logbookLifeCycleClient
- Copyright © 2018 Vitam. All rights reserved.