public abstract class BaseMVCActionCommand extends Object implements MVCActionCommand
PortletAction
EMPTY
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
MVCActionCommand
MVCPortlet
to allow the portlet to process an action
request.processAction
in interface MVCActionCommand
actionRequest
- the action requestactionResponse
- the action responsetrue
if an error occurs in processing the action
request; false
otherwisePortletException
protected void addDeleteSuccessData(PortletRequest portletRequest, Object data)
protected void addSuccessMessage(ActionRequest actionRequest, ActionResponse actionResponse)
protected abstract void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception
Exception
protected 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
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