|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channels.portlet.SpringPortletChannelImpl
@Deprecated public class SpringPortletChannelImpl
Implementation of ISpringPortletChannel that delegates rendering a portlet to the injected PortletContainer.
The portlet to render is determined in initSession(ChannelStaticData, PortalControlStructures) using the
channel publish and subscribe ids.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Deprecated. |
protected static String |
PORTLET_WINDOW_ID_PARAM
Deprecated. |
| Constructor Summary | |
|---|---|
SpringPortletChannelImpl()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
action(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
Deprecated. Handles an action request to the channel. |
ChannelCacheKey |
generateKey(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
Deprecated. Called before ISpringPortletChannel.isCacheValid(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, Object) and
ISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter) during the render
cycle. |
protected String |
getChannelLogInfo(ChannelStaticData channelStaticData,
IPortletWindow portletWindow)
Deprecated. Build a 'nice' summary string of relavent ChannelStaticData information |
protected org.apache.pluto.descriptors.portlet.PortletDD |
getPortletDD(HttpServletRequest httpServletRequest,
IPortletWindowId portletWindowId)
Deprecated. |
IPortletDefinitionRegistry |
getPortletDefinitionRegistry()
Deprecated. |
IPortletEntityRegistry |
getPortletEntityRegistry()
Deprecated. |
IPortletRenderer |
getPortletRenderer()
Deprecated. |
IPortletRequestParameterManager |
getPortletRequestParameterManager()
Deprecated. |
protected IPortletWindowId |
getPortletWindowId(ChannelStaticData channelStaticData)
Deprecated. Gets the portlet window ID to use for the specified channel static data. |
protected IPortletWindowId |
getPortletWindowId(ChannelStaticData channelStaticData,
ChannelRuntimeData channelRuntimeData,
PortalControlStructures pcs)
Deprecated. |
IPortletWindowRegistry |
getPortletWindowRegistry()
Deprecated. |
String |
getTitle(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
Deprecated. Called after ISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter), provides
the title to display for the channel for this rendering. |
protected String |
getWindowInstanceId(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures)
Deprecated. Get the id for the window instance described by the channel static data and portal control structures. |
protected String |
getWindowInstanceId(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
Deprecated. Get the id for the window instance described by the channel static data, portal control structures, and channel runtime data. |
void |
initSession(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures)
Deprecated. Called when a session is created for a user of the channel described by the ChannelStaticData argument. |
boolean |
isCacheValid(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData,
Object validity)
Deprecated. Called after ISpringPortletChannel.generateKey(ChannelStaticData, PortalControlStructures, ChannelRuntimeData) and before
ISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter) during the render
cycle. |
void |
portalEvent(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
PortalEvent portalEvent)
Deprecated. Notification of a portal event. |
void |
prepareForRefresh(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
Deprecated. Notification that the channel will be refreshed due to an error. |
void |
prepareForReset(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
Deprecated. Notification that the channel will be reset due to an error. |
void |
render(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData,
PrintWriter printWriter)
Deprecated. Called after ISpringPortletChannel.generateKey(ChannelStaticData, PortalControlStructures, ChannelRuntimeData) and
ISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter). |
void |
setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
Deprecated. |
void |
setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)
Deprecated. |
void |
setPortletRenderer(IPortletRenderer portletRenderer)
Deprecated. |
void |
setPortletRequestParameterManager(IPortletRequestParameterManager portletRequestParameterManager)
Deprecated. |
protected void |
setPortletWidnowId(ChannelStaticData channelStaticData,
IPortletWindowId portletWindowId)
Deprecated. Sets the portlet window ID to use for the specified channel static data. |
void |
setPortletWindowRegistry(IPortletWindowRegistry portletWindowRegistry)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String PORTLET_WINDOW_ID_PARAM
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public SpringPortletChannelImpl()
| Method Detail |
|---|
public IPortletRenderer getPortletRenderer()
public void setPortletRenderer(IPortletRenderer portletRenderer)
public IPortletDefinitionRegistry getPortletDefinitionRegistry()
public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
portletDefinitionRegistry - the portletDefinitionRegistry to setpublic IPortletEntityRegistry getPortletEntityRegistry()
public void setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)
portletEntityRegistry - the portletEntityRegistry to setpublic IPortletWindowRegistry getPortletWindowRegistry()
public void setPortletWindowRegistry(IPortletWindowRegistry portletWindowRegistry)
portletWindowRegistry - the portletWindowRegistry to setpublic IPortletRequestParameterManager getPortletRequestParameterManager()
public void setPortletRequestParameterManager(IPortletRequestParameterManager portletRequestParameterManager)
portletRequestParameterManager - the portletRequestParameterManager to set
protected String getWindowInstanceId(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures)
channelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/reponse.
protected String getWindowInstanceId(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
channelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/reponse.channelRuntimeData - Portal provided information for the current request.
protected void setPortletWidnowId(ChannelStaticData channelStaticData,
IPortletWindowId portletWindowId)
channelStaticData - The static description data for the channel.portletWindowId - The ID to associate with the static data.protected IPortletWindowId getPortletWindowId(ChannelStaticData channelStaticData)
channelStaticData - The static description data for the channel.
protected IPortletWindowId getPortletWindowId(ChannelStaticData channelStaticData,
ChannelRuntimeData channelRuntimeData,
PortalControlStructures pcs)
public void initSession(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures)
ISpringPortletChannel
initSession in interface ISpringPortletChannelchannelStaticData - The data describing the channel the user session was created for.portalControlStructures - Information about the current request/response.
public void action(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
ISpringPortletChannel
action in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response.channelRuntimeData - Portal provided information for the current request.
public ChannelCacheKey generateKey(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
ISpringPortletChannelISpringPortletChannel.isCacheValid(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, Object) and
ISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter) during the render
cycle. Responsible for generating a unique key that represents the state of the rendered channel for caching.
generateKey in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response.channelRuntimeData - Portal provided information for the current request.
public boolean isCacheValid(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData,
Object validity)
ISpringPortletChannelISpringPortletChannel.generateKey(ChannelStaticData, PortalControlStructures, ChannelRuntimeData) and before
ISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter) during the render
cycle. The validity object ChannelCacheKey.getKeyValidity() from the previous rendering is passed in
to provide a method for this channel to check if it is still valid.
isCacheValid in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response.channelRuntimeData - Portal provided information for the current request.validity - The validity object from the previous rendering, used to check if the cached state is still valid.
true if the cache is still valid, false if not.
protected org.apache.pluto.descriptors.portlet.PortletDD getPortletDD(HttpServletRequest httpServletRequest,
IPortletWindowId portletWindowId)
throws org.apache.pluto.PortletContainerException
org.apache.pluto.PortletContainerException
public void render(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData,
PrintWriter printWriter)
ISpringPortletChannelISpringPortletChannel.generateKey(ChannelStaticData, PortalControlStructures, ChannelRuntimeData) and
ISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter). The channel should
render it's output to the provided PrintWriter and NOT to the response provided by PortalControlStructures.getHttpServletResponse().
render in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response.channelRuntimeData - Portal provided information for the current request.printWriter - The PrintWriter to write the output of the channel to.
public String getTitle(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
ISpringPortletChannelISpringPortletChannel.render(ChannelStaticData, PortalControlStructures, ChannelRuntimeData, PrintWriter), provides
the title to display for the channel for this rendering.
getTitle in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response.channelRuntimeData - Portal provided information for the current request.
public void portalEvent(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
PortalEvent portalEvent)
ISpringPortletChannel
portalEvent in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response, not all events are request driven so the control structures may only be partially populatedportalEvent - The portal event.
public void prepareForRefresh(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
ISpringPortletChannel
prepareForRefresh in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response.channelRuntimeData - Portal provided information for the current request.
public void prepareForReset(ChannelStaticData channelStaticData,
PortalControlStructures portalControlStructures,
ChannelRuntimeData channelRuntimeData)
ISpringPortletChannel
prepareForReset in interface ISpringPortletChannelchannelStaticData - The static description data for the channel.portalControlStructures - Information about the current request/response.channelRuntimeData - Portal provided information for the current request.
protected String getChannelLogInfo(ChannelStaticData channelStaticData,
IPortletWindow portletWindow)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||