public class PortletAction
extends org.apache.struts.action.Action
BaseMVCActionCommand
Constructor and Description |
---|
PortletAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSuccessMessage(ActionRequest actionRequest,
ActionResponse actionResponse) |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected String |
getForward(PortletRequest portletRequest) |
protected String |
getForward(PortletRequest portletRequest,
String defaultValue) |
static String |
getForwardKey(javax.servlet.http.HttpServletRequest request) |
static String |
getForwardKey(PortletRequest portletRequest) |
protected org.apache.struts.config.ModuleConfig |
getModuleConfig(PortletRequest portletRequest) |
protected org.apache.struts.util.MessageResources |
getResources() |
protected org.apache.struts.util.MessageResources |
getResources(javax.servlet.http.HttpServletRequest request) |
protected org.apache.struts.util.MessageResources |
getResources(PortletRequest portletRequest) |
protected PortletPreferences |
getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
protected PortletPreferences |
getStrictPortletSetup(PortletRequest portletRequest) |
protected void |
hideDefaultErrorMessage(PortletRequest portletRequest) |
protected void |
hideDefaultSuccessMessage(PortletRequest portletRequest) |
protected boolean |
isCheckMethodOnProcessAction() |
protected boolean |
isDisplaySuccessMessage(PortletRequest portletRequest) |
void |
processAction(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
PortletConfig portletConfig,
ActionRequest actionRequest,
ActionResponse actionResponse) |
void |
processEvent(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
PortletConfig portletConfig,
EventRequest eventRequest,
EventResponse eventResponse) |
protected boolean |
redirectToLogin(ActionRequest actionRequest,
ActionResponse actionResponse) |
org.apache.struts.action.ActionForward |
render(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
PortletConfig portletConfig,
RenderRequest renderRequest,
RenderResponse renderResponse) |
protected void |
sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse) |
protected void |
sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse,
String redirect) |
protected void |
sendRedirect(PortletConfig portletConfig,
ActionRequest actionRequest,
ActionResponse actionResponse,
String redirect,
String closeRedirect) |
void |
serveResource(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
PortletConfig portletConfig,
ResourceRequest resourceRequest,
ResourceResponse resourceResponse) |
protected void |
setForward(PortletRequest portletRequest,
String forward) |
org.apache.struts.action.ActionForward |
strutsExecute(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
writeJSON(PortletRequest portletRequest,
ActionResponse actionResponse,
Object jsonObj) |
protected void |
writeJSON(PortletRequest portletRequest,
MimeResponse mimeResponse,
Object jsonObj) |
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
public static String getForwardKey(javax.servlet.http.HttpServletRequest request)
public static String getForwardKey(PortletRequest portletRequest)
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
execute
in class org.apache.struts.action.Action
Exception
public void processAction(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse) throws Exception
Exception
public void processEvent(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, PortletConfig portletConfig, EventRequest eventRequest, EventResponse eventResponse) throws Exception
Exception
public org.apache.struts.action.ActionForward render(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) throws Exception
Exception
public void serveResource(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, PortletConfig portletConfig, ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws Exception
Exception
public org.apache.struts.action.ActionForward strutsExecute(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected void addSuccessMessage(ActionRequest actionRequest, ActionResponse actionResponse)
protected String getForward(PortletRequest portletRequest)
protected String getForward(PortletRequest portletRequest, String defaultValue)
protected org.apache.struts.config.ModuleConfig getModuleConfig(PortletRequest portletRequest)
protected org.apache.struts.util.MessageResources getResources()
protected org.apache.struts.util.MessageResources getResources(javax.servlet.http.HttpServletRequest request)
getResources
in class org.apache.struts.action.Action
protected org.apache.struts.util.MessageResources getResources(PortletRequest portletRequest)
protected PortletPreferences getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected PortletPreferences getStrictPortletSetup(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void hideDefaultErrorMessage(PortletRequest portletRequest)
protected void hideDefaultSuccessMessage(PortletRequest portletRequest)
protected boolean isCheckMethodOnProcessAction()
protected boolean isDisplaySuccessMessage(PortletRequest portletRequest)
protected boolean redirectToLogin(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOException
protected void sendRedirect(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOException
protected void sendRedirect(ActionRequest actionRequest, ActionResponse actionResponse, String redirect) throws IOException
IOException
protected void sendRedirect(PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse, String redirect, String closeRedirect) throws IOException
IOException
protected void setForward(PortletRequest portletRequest, String forward)
protected void writeJSON(PortletRequest portletRequest, ActionResponse actionResponse, Object jsonObj) throws IOException
IOException
protected void writeJSON(PortletRequest portletRequest, MimeResponse mimeResponse, Object jsonObj) throws IOException
IOException