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 json) |
protected void |
writeJSON(PortletRequest portletRequest,
MimeResponse mimeResponse,
Object json) |
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic 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.ActionExceptionpublic void processAction(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
PortletConfig portletConfig,
ActionRequest actionRequest,
ActionResponse actionResponse)
throws Exception
Exceptionpublic void processEvent(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
PortletConfig portletConfig,
EventRequest eventRequest,
EventResponse eventResponse)
throws Exception
Exceptionpublic 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
Exceptionpublic void serveResource(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
PortletConfig portletConfig,
ResourceRequest resourceRequest,
ResourceResponse resourceResponse)
throws Exception
Exceptionpublic 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
Exceptionprotected 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.Actionprotected 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.PortalExceptionprotected PortletPreferences getStrictPortletSetup(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected 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
IOExceptionprotected void sendRedirect(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOExceptionprotected void sendRedirect(ActionRequest actionRequest, ActionResponse actionResponse, String redirect) throws IOException
IOExceptionprotected void sendRedirect(PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse, String redirect, String closeRedirect) throws IOException
IOExceptionprotected void setForward(PortletRequest portletRequest, String forward)
protected void writeJSON(PortletRequest portletRequest, ActionResponse actionResponse, Object json) throws IOException
IOExceptionprotected void writeJSON(PortletRequest portletRequest, MimeResponse mimeResponse, Object json) throws IOException
IOException