RM-2477 (The downgrade instructions are not required when only one of the Downgrade date or event is completed)

- Removing the downgrade instructions check as the method checkConsistencyOfProperties in ClassifiedAspect already does this check.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@112934 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-09-23 20:52:28 +00:00
parent d07585bdeb
commit 4c26433028

View File

@@ -118,10 +118,6 @@ 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);