com.liferay.portlet.documentlibrary.action
Class GetFoldersAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.liferay.portal.struts.JSONAction
          extended by com.liferay.portlet.documentlibrary.action.GetFoldersAction

public class GetFoldersAction
extends JSONAction

View Source

Author:
Edward Shin

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
GetFoldersAction()
           
 
Method Summary
 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  org.json.JSONArray toJSONArray(java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> folders)
           
protected  org.json.JSONObject toJSONObject(com.liferay.portlet.documentlibrary.model.DLFolder folder)
           
 
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

GetFoldersAction

public GetFoldersAction()
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

toJSONArray

protected org.json.JSONArray toJSONArray(java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> folders)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

toJSONObject

protected org.json.JSONObject toJSONObject(com.liferay.portlet.documentlibrary.model.DLFolder folder)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException