com.liferay.portal.action
Class JSONServiceAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.liferay.portal.struts.JSONAction
          extended bycom.liferay.portal.action.JSONServiceAction

public class JSONServiceAction
extends JSONAction

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
JSONServiceAction()
           
 
Method Summary
protected  java.lang.Object getArgValue(javax.servlet.http.HttpServletRequest req, java.lang.Class classObj, java.lang.String methodName, java.lang.String parameter, java.lang.Class parameterType)
           
 java.lang.String getJSON(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  java.lang.Object[] getMethodAndParameterTypes(java.lang.Class classObj, java.lang.String methodName, int paramtersCount)
           
protected  java.lang.String getReturnValue(java.lang.Object returnObj)
           
protected  java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetDisplay assetDisplay)
           
protected  java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetDisplay[] assetDisplays)
           
protected  java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetType assetType)
           
protected  java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetType[] assetTypes)
           
static org.json.JSONObject toJSONObject(com.liferay.portlet.tags.model.TagsAssetDisplay assetDisplay)
           
static org.json.JSONObject toJSONObject(com.liferay.portlet.tags.model.TagsAssetType assetType)
           
 
Methods inherited from class com.liferay.portal.struts.JSONAction
execute
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONServiceAction

public JSONServiceAction()
Method Detail

getJSON

public java.lang.String getJSON(org.apache.struts.action.ActionMapping mapping,
                                org.apache.struts.action.ActionForm form,
                                javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse res)
                         throws java.lang.Exception
Specified by:
getJSON in class JSONAction
Throws:
java.lang.Exception

getArgValue

protected java.lang.Object getArgValue(javax.servlet.http.HttpServletRequest req,
                                       java.lang.Class classObj,
                                       java.lang.String methodName,
                                       java.lang.String parameter,
                                       java.lang.Class parameterType)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getMethodAndParameterTypes

protected java.lang.Object[] getMethodAndParameterTypes(java.lang.Class classObj,
                                                        java.lang.String methodName,
                                                        int paramtersCount)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

getReturnValue

protected java.lang.String getReturnValue(java.lang.Object returnObj)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getReturnValue

protected java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetDisplay assetDisplay)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getReturnValue

protected java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetDisplay[] assetDisplays)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getReturnValue

protected java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetType assetType)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getReturnValue

protected java.lang.String getReturnValue(com.liferay.portlet.tags.model.TagsAssetType[] assetTypes)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

toJSONObject

public static org.json.JSONObject toJSONObject(com.liferay.portlet.tags.model.TagsAssetDisplay assetDisplay)

toJSONObject

public static org.json.JSONObject toJSONObject(com.liferay.portlet.tags.model.TagsAssetType assetType)