|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.portal.portlets.AbstractPortlet org.apache.jetspeed.portal.portlets.AbstractInstancePortlet org.apache.jetspeed.portal.portlets.GenericMVCPortlet
Provides the basic MVC Portlet functionality independant of any
specific view technology (ie jsp, velocity, xslt, etc). It handles
the views via a ViewProcessor, which is a pluggable, factory
created, run time module for which ever view technology your portlet
uses.
There is no need to extend this portlet class, just define your porlet
entry in the registy as a child of this class and provide your template
and action class (extened from GenericMVCAction of course) and you
are good to go.
Example .xreg entry:
Field Summary | |
static java.lang.String |
DOC_URL
|
static java.lang.String |
IS_CACHEABLE
|
static java.lang.String |
PORTLET
|
static java.lang.String |
PORTLET_CONFIG
|
static java.lang.String |
PORTLET_ID
|
static java.lang.String |
RENDERING_DELAYED
|
static java.lang.String |
RUNDATA
|
static java.lang.String |
SIMULATE_DELAY
|
static java.lang.String |
SKIN
|
static java.lang.String |
TEMPLATE
|
static java.lang.String |
VIEW_TYPE
|
Fields inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet |
content |
Fields inherited from interface org.apache.jetspeed.portal.Portlet |
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL |
Constructor Summary | |
GenericMVCPortlet()
|
Method Summary | |
protected org.apache.ecs.ConcreteElement |
buildContent(org.apache.turbine.util.RunData rundata)
|
org.apache.ecs.ConcreteElement |
getContent(org.apache.turbine.util.RunData rundata)
Returns an HTML representation of this portlet. |
protected java.lang.String |
getCurrentTemplate(org.apache.turbine.util.RunData data)
|
protected java.lang.String |
getViewType()
|
void |
init()
By default don't provide any initialization |
boolean |
isCacheable()
By default MVCPortlets are cacheable. |
protected void |
populateRequest(org.apache.turbine.util.RunData rundata)
This is called before any action execution happens. |
boolean |
providesCustomization()
Whether or not this portlet provides it's own customizer. |
protected org.apache.ecs.ConcreteElement |
renderJspTemplate(org.apache.turbine.util.RunData rundata,
java.lang.String templateName)
|
protected void |
setViewType(java.lang.String viewType)
STW: Added for backward compatibility when using this class to subclass the existing Jsp and Velocity portlets so they can set their view prior to super.init(); |
protected boolean |
useDelayedRendering(org.apache.turbine.util.RunData rundata)
|
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractInstancePortlet |
getHandle |
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet |
allowClose, allowCustomize, allowInfo, allowMaximize, allowMinimize, allowPrintFriendly, allowView, clearContent, getAllowEdit, getAllowMaximize, getAllowView, getAttribute, getContent, getContent, getCreationTime, getDescription, getDescription, getExpirationMillis, getExpire, getHandle, getID, getImage, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, isClosed, isMinimized, isShowTitleBar, refresh, setAttribute, setCacheable, setCachedObject, setClosed, setContent, setContent, setContent, setCreationTime, setDescription, setExpirationMillis, setHandle, setID, setImage, setMinimized, setName, setPortletConfig, setTitle, setTitle, supportsType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PORTLET
public static final java.lang.String TEMPLATE
public static final java.lang.String RUNDATA
public static final java.lang.String PORTLET_CONFIG
public static final java.lang.String SKIN
public static final java.lang.String VIEW_TYPE
public static final java.lang.String IS_CACHEABLE
public static final java.lang.String RENDERING_DELAYED
public static final java.lang.String SIMULATE_DELAY
public static final java.lang.String PORTLET_ID
public static final java.lang.String DOC_URL
Constructor Detail |
public GenericMVCPortlet()
Method Detail |
public void init() throws PortletException
AbstractPortlet
init
in interface Portlet
init
in class AbstractPortlet
PortletException
public boolean isCacheable()
isCacheable
in interface Cacheable
isCacheable
in class AbstractPortlet
public boolean providesCustomization()
providesCustomization
in interface Portlet
providesCustomization
in class AbstractPortlet
public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
Portlet
getContent
in interface Portlet
getContent
in class AbstractPortlet
rundata
- The RunData object for the current requestprotected org.apache.ecs.ConcreteElement buildContent(org.apache.turbine.util.RunData rundata)
protected java.lang.String getViewType()
setViewType()
protected void setViewType(java.lang.String viewType)
viewType
- The viewType to setprotected void populateRequest(org.apache.turbine.util.RunData rundata)
protected java.lang.String getCurrentTemplate(org.apache.turbine.util.RunData data)
protected boolean useDelayedRendering(org.apache.turbine.util.RunData rundata)
protected org.apache.ecs.ConcreteElement renderJspTemplate(org.apache.turbine.util.RunData rundata, java.lang.String templateName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |