mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-2477 (The downgrade instructions are not required when only one of the Downgrade date or event is completed)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@112714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -118,6 +118,10 @@ public abstract class ClassifyContentBase extends AbstractRmWebScript
|
||||
String downgradeDate = getStringValueFromJSONObject(jsonObject, DOWNGRADE_DATE, false, false);
|
||||
String downgradeEvent = getStringValueFromJSONObject(jsonObject, DOWNGRADE_EVENT, false, false);
|
||||
String downgradeInstructions = getStringValueFromJSONObject(jsonObject, DOWNGRADE_INSTRUCTIONS, false, false);
|
||||
if ((isNotBlank(downgradeDate) || isNotBlank(downgradeEvent)) && isBlank(downgradeInstructions))
|
||||
{
|
||||
throw new WebScriptException(STATUS_BAD_REQUEST, "Downgrade instructions cannot be empty if downgrade date and/or downgrade event has/have been set.");
|
||||
}
|
||||
String declassificationDate = getStringValueFromJSONObject(jsonObject, DECLASSIFICATION_DATE, false, false);
|
||||
String declassificationEvent = getStringValueFromJSONObject(jsonObject, DECLASSIFICATION_EVENT, false, false);
|
||||
Set<String> exemptionCategoryIds = getExemptionCategoryIds(jsonObject);
|
||||
|
Reference in New Issue
Block a user