public abstract class BaseMVCActionCommand extends Object implements MVCActionCommand
com.liferay.portal.struts.PortletActionEMPTY| Constructor and Description |
|---|
BaseMVCActionCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDeleteSuccessData(PortletRequest portletRequest,
Object data) |
protected void |
addSuccessMessage(ActionRequest actionRequest,
ActionResponse actionResponse) |
protected abstract void |
doProcessAction(ActionRequest actionRequest,
ActionResponse actionResponse) |
protected PortletConfig |
getPortletConfig(PortletRequest portletRequest) |
protected void |
hideDefaultErrorMessage(PortletRequest portletRequest) |
protected void |
hideDefaultSuccessMessage(PortletRequest portletRequest) |
protected boolean |
isDisplaySuccessMessage(PortletRequest portletRequest) |
boolean |
processAction(ActionRequest actionRequest,
ActionResponse actionResponse)
Invoked by
MVCPortlet to allow the portlet to process an action
request. |
protected boolean |
redirectToLogin(ActionRequest actionRequest,
ActionResponse actionResponse) |
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) |
public boolean processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException
MVCActionCommandMVCPortlet to allow the portlet to process an action
request.processAction in interface MVCActionCommandactionRequest - the action requestactionResponse - the action responsetrue if an error occurs in processing the action
request; false otherwisePortletExceptionprotected void addDeleteSuccessData(PortletRequest portletRequest, Object data)
protected void addSuccessMessage(ActionRequest actionRequest, ActionResponse actionResponse)
protected abstract void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception
Exceptionprotected PortletConfig getPortletConfig(PortletRequest portletRequest)
protected void hideDefaultErrorMessage(PortletRequest portletRequest)
protected void hideDefaultSuccessMessage(PortletRequest portletRequest)
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
IOException