mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Revert r78925 to fix ACE-2393
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78933 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,7 +21,6 @@ package org.alfresco.repo.jscript;
|
||||
import org.alfresco.repo.jscript.app.CustomResponse;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.extensions.webscripts.DefaultURLModel;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
@@ -50,9 +49,9 @@ public final class SlingshotDocLibCustomResponse extends BaseScopableProcessorEx
|
||||
*
|
||||
* @return The JSON string
|
||||
*/
|
||||
public String getJSON(DefaultURLModel url)
|
||||
public String getJSON()
|
||||
{
|
||||
return this.getJSONObj(url).toString();
|
||||
return this.getJSONObj().toString();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,7 +59,7 @@ public final class SlingshotDocLibCustomResponse extends BaseScopableProcessorEx
|
||||
*
|
||||
* @return The JSON object
|
||||
*/
|
||||
protected Object getJSONObj(DefaultURLModel url)
|
||||
protected Object getJSONObj()
|
||||
{
|
||||
JSONObject json = new JSONObject();
|
||||
|
||||
@@ -69,7 +68,7 @@ public final class SlingshotDocLibCustomResponse extends BaseScopableProcessorEx
|
||||
{
|
||||
try
|
||||
{
|
||||
Serializable response = ((CustomResponse) entry.getValue()).populate(url);
|
||||
Serializable response = ((CustomResponse) entry.getValue()).populate();
|
||||
json.put(entry.getKey(), response == null ? JSONObject.NULL: response);
|
||||
}
|
||||
catch (JSONException error)
|
||||
|
Reference in New Issue
Block a user