|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface IController
Implementors of this interface can be used in the Jsp Channel Type to a create a channel whose content is served up from JSPs in a model II controller architecture. The controller can act on each incoming request via the processRuntimeData method and alter its internal model accordingly. There is one controller intance per channel per user so it can safely use instance variables. Any business objects that need to be passed to one of its JSPs via the request object should be placed in the Map returned from that method.
| Field Summary | |
|---|---|
static String |
JSP_DEPLOY_PATH
Deprecated. |
| Fields inherited from interface org.jasig.portal.ICacheable |
|---|
CHANNEL_CACHE_KEY_INSTANCE_SCOPE, CHANNEL_CACHE_KEY_SCOPE_PARAM_NAME, CHANNEL_CACHE_KEY_SYSTEM_SCOPE |
| Method Summary | |
|---|---|
Map |
getJspMap()
Deprecated. Returns a Map of jsp pages that are exposed by the controller. |
String |
getJspToRender()
Deprecated. Returns the id of the jsp that should be delegated to for this request. |
Map |
processRuntimeData(ChannelRuntimeData drd,
HttpSession s)
Deprecated. Allows the plugged-in controller for the jsp channel to have access to request-time parameters passed back to the channel instance and to take action internally. |
void |
receiveEvent(PortalEvent ev)
Deprecated. Allows the plugged-in controller for the jsp channel to know about channel events. |
void |
setStaticData(ChannelStaticData csd)
Deprecated. Allows the plugged-in controller for the jsp channel to have access to publish-time parameters and other information about the user. |
| Methods inherited from interface org.jasig.portal.ICacheable |
|---|
generateKey, isCacheValid |
| Field Detail |
|---|
static final String JSP_DEPLOY_PATH
| Method Detail |
|---|
void setStaticData(ChannelStaticData csd)
getJspToRender()void receiveEvent(PortalEvent ev)
IChannel.receiveEvent(org.jasig.portal.PortalEvent)
Map processRuntimeData(ChannelRuntimeData drd,
HttpSession s)
Map getJspMap()
jspmap.put("show.UserInfo.jsp","jsps/user.jsp");
String getJspToRender()
map.put("show.UserInfo.jsp","jsps/user.jsp");
For the above example if the controller were in the com.sct.myChannel
package and this method returned "show.UserInfo.jsp" then the fully
qualified path specified to acquire the dispatcher would be:
"/WEB-INF/classes/com/sct/myChannel/jsp/user.jsp"
This method should never return a value of null. If the last content
generated by the channel should be used the ICacheable implementations
should indicate such behavior and prevent this method from being
called. This method will only be called when new rendering is required
as dictated by reponses to the ICacheable implementation methods.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||