public abstract class LiferayMVCPortlet
extends com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet
| Modifier and Type | Field and Description |
|---|---|
protected de.mhus.lib.portlet.actions.ActionRequestHandler |
actionsHandler |
static String |
INIT_PARAMETER_PUBLIC_VIEW |
protected de.mhus.lib.core.logging.Log |
log |
static String |
PUBLIC_PREFIX |
static String |
REASON_ATTRIBUTE_NAME |
protected de.mhus.lib.portlet.resource.ResourceRequestHandler |
resourcesHandler |
protected boolean |
viewNeedParameters
Set this to true if the view jsp needs parameters from the request.
|
| Constructor and Description |
|---|
LiferayMVCPortlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
protected boolean |
doFillViewAttributes(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Overwrite this method if you need to give attributes to the jsp page.
|
protected abstract void |
doInit() |
void |
doPublicView(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse) |
void |
doView(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse) |
protected String |
hasRights(javax.portlet.PortletRequest request)
Return a reason why the user is not accepted.
|
void |
init() |
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response) |
void |
serveResource(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse) |
callActionMethod, callResourceMethod, checkPermissions, destroy, doAbout, doConfig, doDispatch, doEditDefaults, doEditGuest, doHelp, doPreview, doPrint, getMVCPathAttributeName, getPath, hideDefaultErrorMessage, hideDefaultSuccessMessage, include, include, include, include, include, invokeHideDefaultSuccessMessage, invokeTaglibDiscussion, invokeTaglibDiscussionPagination, renderaddSuccessMessage, checkPath, getActionMethod, getJSONContentType, getPaths, getRedirect, getResourceMethod, getServletContext, getTitle, initValidPaths, isAlwaysSendRedirect, isEmptySessionMessages, isProcessActionRequest, isProcessPortletRequest, isProcessRenderRequest, isProcessResourceRequest, isSessionErrorException, isValidPath, sendRedirect, translate, translate, writeJSON, writeJSONdoHeaders, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, init, processEventpublic static final String PUBLIC_PREFIX
public static final String REASON_ATTRIBUTE_NAME
public static final String INIT_PARAMETER_PUBLIC_VIEW
protected de.mhus.lib.portlet.resource.ResourceRequestHandler resourcesHandler
protected de.mhus.lib.portlet.actions.ActionRequestHandler actionsHandler
protected de.mhus.lib.core.logging.Log log
protected boolean viewNeedParameters
public void init()
throws javax.portlet.PortletException
init in class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortletjavax.portlet.PortletExceptionprotected abstract void doInit()
throws javax.portlet.PortletException
javax.portlet.PortletExceptionprotected String hasRights(javax.portlet.PortletRequest request)
request - public void doView(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
throws IOException,
javax.portlet.PortletException
doView in class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortletIOExceptionjavax.portlet.PortletExceptionpublic void doPublicView(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
throws IOException,
javax.portlet.PortletException
IOExceptionjavax.portlet.PortletExceptionprotected boolean doFillViewAttributes(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws IOException,
javax.portlet.PortletException
request - response - IOExceptionjavax.portlet.PortletExceptionpublic void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
processAction in interface javax.portlet.PortletprocessAction in class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortletjavax.portlet.PortletExceptionIOExceptionpublic void serveResource(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse)
throws IOException,
javax.portlet.PortletException
serveResource in interface javax.portlet.ResourceServingPortletserveResource in class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortletIOExceptionjavax.portlet.PortletExceptionpublic void doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
doEdit in class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortletjavax.portlet.PortletExceptionIOExceptionCopyright © 2018. All rights reserved.