RM-1641 (Create Relationship Service)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@85790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-09-26 12:56:55 +00:00
parent 387abf1282
commit 4bd8e7f978
30 changed files with 1642 additions and 594 deletions

View File

@@ -227,7 +227,7 @@ public final class WebScriptUtils
checkMandatoryJsonParam(jsonObject, key);
}
String value;
String value = null;
try
{
@@ -239,7 +239,10 @@ public final class WebScriptUtils
}
catch (JSONException error)
{
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not get value for the key '" + key + "'.", error);
if (checkValue)
{
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not get value for the key '" + key + "'.", error);
}
}
return value;