public abstract class BaseMVCActionCommand extends java.lang.Object implements MVCActionCommand
EMPTY| Constructor and Description |
|---|
BaseMVCActionCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSuccessMessage(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected abstract void |
doProcessAction(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected javax.portlet.PortletConfig |
getPortletConfig(javax.portlet.PortletRequest portletRequest) |
protected void |
hideDefaultErrorMessage(javax.portlet.PortletRequest portletRequest) |
protected void |
hideDefaultSuccessMessage(javax.portlet.PortletRequest portletRequest) |
boolean |
processAction(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
Invoked by
MVCPortlet to allow the portlet to process an action
request. |
protected boolean |
redirectToLogin(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected void |
sendRedirect(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.String redirect) |
public boolean processAction(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws javax.portlet.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 otherwisejavax.portlet.PortletException - if a portlet exception occurredprotected void addSuccessMessage(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
protected abstract void doProcessAction(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionprotected javax.portlet.PortletConfig getPortletConfig(javax.portlet.PortletRequest portletRequest)
protected void hideDefaultErrorMessage(javax.portlet.PortletRequest portletRequest)
protected void hideDefaultSuccessMessage(javax.portlet.PortletRequest portletRequest)
protected boolean redirectToLogin(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.io.IOException
java.io.IOExceptionprotected void sendRedirect(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.String redirect)
throws java.io.IOException
java.io.IOException