com.liferay.portal.kernel.portlet.bridges.mvc
Class BaseMVCActionCommand
java.lang.Object
com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand
- All Implemented Interfaces:
- MVCActionCommand, MVCCommand
public abstract class BaseMVCActionCommand
- extends Object
- implements MVCActionCommand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseMVCActionCommand
public BaseMVCActionCommand()
processAction
public boolean processAction(ActionRequest actionRequest,
ActionResponse actionResponse)
throws PortletException
- Description copied from interface:
MVCActionCommand
- Invoked by
MVCPortlet to allow the portlet to process an action
request.
- Specified by:
processAction in interface MVCActionCommand
- Parameters:
actionRequest - the action requestactionResponse - the action response
- Returns:
true if an error occurs in processing the action
request; false otherwise
- Throws:
PortletException - if a portlet exception occurred
addSuccessMessage
protected void addSuccessMessage(ActionRequest actionRequest,
ActionResponse actionResponse)
doProcessAction
protected abstract void doProcessAction(ActionRequest actionRequest,
ActionResponse actionResponse)
throws Exception
- Throws:
Exception
getPortletConfig
protected PortletConfig getPortletConfig(PortletRequest portletRequest)
hideDefaultErrorMessage
protected void hideDefaultErrorMessage(PortletRequest portletRequest)
hideDefaultSuccessMessage
protected void hideDefaultSuccessMessage(PortletRequest portletRequest)
redirectToLogin
protected boolean redirectToLogin(ActionRequest actionRequest,
ActionResponse actionResponse)
throws IOException
- Throws:
IOException
sendRedirect
protected void sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse,
String redirect)
throws IOException
- Throws:
IOException