public class ArchiveUnitUpdateUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
UNLIMITED_RULE_DURATION |
| Constructor and Description |
|---|
ArchiveUnitUpdateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.JsonNode |
computeEndDate(com.fasterxml.jackson.databind.node.ObjectNode updatingRule,
com.fasterxml.jackson.databind.JsonNode ruleModel) |
static String |
getDiffMessageFor(com.fasterxml.jackson.databind.JsonNode diff,
String unitId)
Common method to get the diff message
|
static boolean |
updateCategoryRules(com.fasterxml.jackson.databind.JsonNode rulesForCategory,
List<com.fasterxml.jackson.databind.JsonNode> listRulesByType,
UpdateMultiQuery query,
String key)
Method used to get update query for an archive unit
|
public static final String UNLIMITED_RULE_DURATION
public static boolean updateCategoryRules(com.fasterxml.jackson.databind.JsonNode rulesForCategory,
List<com.fasterxml.jackson.databind.JsonNode> listRulesByType,
UpdateMultiQuery query,
String key)
throws InvalidCreateOperationException
rulesForCategory - listRulesByType - query - key - InvalidCreateOperationException@Nonnull public static com.fasterxml.jackson.databind.JsonNode computeEndDate(@Nonnull com.fasterxml.jackson.databind.node.ObjectNode updatingRule, com.fasterxml.jackson.databind.JsonNode ruleModel)
public static String getDiffMessageFor(com.fasterxml.jackson.databind.JsonNode diff, String unitId) throws InvalidParseOperationException
diff - unitId - InvalidParseOperationExceptionCopyright © 2021 Vitam. All rights reserved.