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
- Direct Known Subclasses:
- BaseFormMVCActionCommand
public abstract class BaseMVCActionCommand
- extends Object
- implements MVCActionCommand
- See Also:
PortletAction
|
Method Summary |
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)
|
| 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
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)
isDisplaySuccessMessage
protected boolean isDisplaySuccessMessage(PortletRequest portletRequest)
redirectToLogin
protected boolean redirectToLogin(ActionRequest actionRequest,
ActionResponse actionResponse)
throws IOException
- Throws:
IOException
sendRedirect
protected void sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse)
throws IOException
- Throws:
IOException
sendRedirect
protected void sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse,
String redirect)
throws IOException
- Throws:
IOException
sendRedirect
protected void sendRedirect(PortletConfig portletConfig,
ActionRequest actionRequest,
ActionResponse actionResponse,
String redirect,
String closeRedirect)
throws IOException
- Throws:
IOException