|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channels.portlet.CSpringPortletAdaptor
@Deprecated public class CSpringPortletAdaptor
An attempt at a channel that can wrap a singleton spring-configured ISpringPortletChannel instance and
delegate execution to. This class simply must maintain the instance data and pass it on to the ISpringPortletChannel
for each method. The channel gets the name of the ISpringPortletChannel bean to use from the parameter named
'springBeanName' using the SPRING_BEAN_NAME_PARAM constant.
This class also attempts to eagerly clean up session & request scoped resources at the end of each 'lifecycle' set
of calls.
| Field Summary | |
|---|---|
static String |
DEFAULT_SPRING_BEAN_NAME
Deprecated. |
protected org.apache.commons.logging.Log |
logger
Deprecated. |
static String |
SPRING_BEAN_NAME_PARAM
Deprecated. |
| Fields inherited from interface org.jasig.portal.channels.portlet.IPortletAdaptor |
|---|
ABOUT, ATTRIBUTE__PORTLET_TITLE, ATTRIBUTE__RUNTIME_DATA, CHANNEL_PARAM__IS_FRAMEWORK_PORTLET, CHANNEL_PARAM__PORTLET_APPLICATION_ID, CHANNEL_PARAM__PORTLET_NAME, CONFIG, DETACHED, EXCLUSIVE, MULTIVALUED_USERINFO_MAP_ATTRIBUTE |
| Fields inherited from interface org.jasig.portal.ICacheable |
|---|
CHANNEL_CACHE_KEY_INSTANCE_SCOPE, CHANNEL_CACHE_KEY_SCOPE_PARAM_NAME, CHANNEL_CACHE_KEY_SYSTEM_SCOPE |
| Constructor Summary | |
|---|---|
CSpringPortletAdaptor()
Deprecated. |
|
| Method Summary | |
|---|---|
ChannelCacheKey |
generateKey()
Deprecated. Requests the channel to generate a key uniquely describing its current state, and a description of key usage. |
ChannelRuntimeProperties |
getRuntimeProperties()
Deprecated. Acquires ChannelRuntimeProperites from the channel. |
boolean |
isCacheValid(Object validity)
Deprecated. Requests the channel to verify validity of the retrieved cache based on the validator object. |
void |
prepareForRefresh()
Deprecated. Prepare to be refereshed after an error. |
void |
prepareForReset()
Deprecated. Prepare to be reset after an error. |
void |
processAction()
Deprecated. IChannel.setStaticData(org.jasig.portal.ChannelStaticData),
IPrivileged.setPortalControlStructures(org.jasig.portal.PortalControlStructures), and
IChannel.setRuntimeData(org.jasig.portal.ChannelRuntimeData) will be called before
this method. |
void |
receiveEvent(PortalEvent ev)
Deprecated. Passes an outside event to a channel. |
void |
renderCharacters(PrintWriter pw)
Deprecated. Asks the channel to render its content as characters. |
void |
renderXML(ContentHandler out)
Deprecated. Ask channel to render its content. |
void |
setPortalControlStructures(PortalControlStructures pcs)
Deprecated. Passes portal control structure to the channel. |
void |
setResponse(HttpServletResponse response)
Deprecated. Sets the HttpServletResponse for the channel to use. |
void |
setRuntimeData(ChannelRuntimeData rd)
Deprecated. Passes ChannelRuntimeData to the channel. |
void |
setStaticData(ChannelStaticData sd)
Deprecated. Passes ChannelStaticData to the channel. |
String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SPRING_BEAN_NAME_PARAM
public static final String DEFAULT_SPRING_BEAN_NAME
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public CSpringPortletAdaptor()
| Method Detail |
|---|
public void setStaticData(ChannelStaticData sd)
throws PortalException
IChannel
setStaticData in interface IChannelsd - channel static data
PortalExceptionChannelStaticData
public void setPortalControlStructures(PortalControlStructures pcs)
throws PortalException
IPrivileged
setPortalControlStructures in interface IPrivilegedPortalExceptionPortalControlStructures
public void setRuntimeData(ChannelRuntimeData rd)
throws PortalException
IChannel
setRuntimeData in interface IChannelrd - channel runtime data
PortalExceptionChannelRuntimeData
public void processAction()
throws PortalException
IPortletAdaptorIChannel.setStaticData(org.jasig.portal.ChannelStaticData),
IPrivileged.setPortalControlStructures(org.jasig.portal.PortalControlStructures), and
IChannel.setRuntimeData(org.jasig.portal.ChannelRuntimeData) will be called before
this method. Actions are executed before the layout rendering pipeline is initiated and redirects can be sent though
content can not be written out to the response. Only one channel will execute a processAction per request.
processAction in interface IPortletAdaptorPortalException - If an exception occurs while processing the action.public ChannelCacheKey generateKey()
ICacheable
generateKey in interface ICacheablepublic boolean isCacheValid(Object validity)
ICacheable
isCacheValid in interface ICacheable
public void renderCharacters(PrintWriter pw)
throws PortalException
ICharacterChannel
renderCharacters in interface ICharacterChannelpw - a PrintWriter value into which the character output should be directed
PortalException - if an error occurspublic ChannelRuntimeProperties getRuntimeProperties()
IChannel
getRuntimeProperties in interface IChannelChannelRuntimePropertiespublic void receiveEvent(PortalEvent ev)
IChannel
receiveEvent in interface IChannelev - PortalEvent objectPortalEventpublic void prepareForRefresh()
IResetableChannelIPrivileged IPrivileged.setPortalControlStructures(PortalControlStructures)
must be called before this method. IChannel.setRuntimeData(ChannelRuntimeData) must also be called before this method.
prepareForRefresh in interface IResetableChannelpublic void prepareForReset()
IResetableChannelChannelRuntimeData should be cleared.
If the channel also implements IPrivileged IPrivileged.setPortalControlStructures(PortalControlStructures)
must be called before this method. IChannel.setRuntimeData(ChannelRuntimeData) must also be called before this method.
prepareForReset in interface IResetableChannel
public void setResponse(HttpServletResponse response)
throws PortalException
IDirectResponse
setResponse in interface IDirectResponseresponse - The HttpServletResponse for the channel to use.
PortalException
public void renderXML(ContentHandler out)
throws PortalException
IChannel
renderXML in interface IChannelout - the SAX ContentHandler to output content to
PortalExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||