|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
com.javaplant.portlet.BaseMVCPortlet
A base class for portlets that provides a variety of behaviors and properties. Form bean behaviors -Automatic form-bean creation and population from request parameters. -a callback for validation of a form bean -form bean is placed in PortletRequest (RenderRequest) scope
Field Summary | |
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
BaseMVCPortlet()
|
Method Summary | |
protected PortletPage |
doEditRender(PortletForm form,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Template method - subclasses should override and provide custom EDIT-render processing if necessary. |
protected PortletPage |
doHelpRender(PortletForm form,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Template method - subclasses should override and provide custom HELP-render processing if necessary. |
protected void |
doInit()
Template method - subclasses should override and provide custom portlet initialization. |
protected abstract void |
doProcessAction(PortletForm form,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Subclasses must provide an implementation of this method to handle portlet actions. |
protected PortletPage |
doViewRender(PortletForm form,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Template method - subclasses should override and provide custom VIEW-render processing if necessary. |
protected java.lang.String |
getEditPage()
Returns the path to the JSP page that is configured for this portlet using portlet.jsp.edit. |
protected PortletForm |
getForm()
Create a new instance of the PortletForm configured for this portlet. |
protected java.lang.String |
getHelpPage()
Returns the path to the JSP page that is configured for this portlet using portlet.jsp.help. |
protected java.lang.String |
getPage(java.lang.String pageName)
Get the path to an arbitrary JSP page component that is part of this portlet's configuration. |
protected java.lang.String |
getViewPage()
Returns the path to the JSP page that is configured for this portlet using portlet.jsp.view. |
void |
init()
This method creates the PortletConfiguration for this portlet based on the <init-param>'s in portlet.xml. |
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Standard Portlet API method. |
void |
render(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
This method enforces the BaseMVCPortlet-render lifecycle. |
Methods inherited from class javax.portlet.GenericPortlet |
destroy, doDispatch, doEdit, doHelp, doView, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final org.apache.commons.logging.Log log
Constructor Detail |
public BaseMVCPortlet()
Method Detail |
public final void init() throws javax.portlet.PortletException
javax.portlet.PortletException
protected void doInit() throws javax.portlet.PortletException
javax.portlet.PortletException
public final void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, java.io.IOException
doProcessAction
.
request
- response
-
javax.portlet.PortletException
java.io.IOException
public final void render(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
request
- response
-
javax.portlet.PortletException
java.io.IOException
protected abstract void doProcessAction(PortletForm form, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, java.io.IOException
form
- request
- response
-
javax.portlet.PortletException
java.io.IOException
protected PortletPage doViewRender(PortletForm form, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
form
- request
- response
-
javax.portlet.PortletException
java.io.IOException
protected PortletPage doEditRender(PortletForm form, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
form
- request
- response
-
javax.portlet.PortletException
java.io.IOException
protected PortletPage doHelpRender(PortletForm form, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
form
- request
- response
-
javax.portlet.PortletException
java.io.IOException
protected final java.lang.String getViewPage()
protected final java.lang.String getEditPage()
protected final java.lang.String getHelpPage()
protected final java.lang.String getPage(java.lang.String pageName)
pageName
- name of page to get from PortletConfiguration.
protected final PortletForm getForm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |