Source Code Cross Referenced for IController.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » channels » jsp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.channels.jsp 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Created on Aug 25, 2004
003:         *
004:         * To change the template for this generated file go to
005:         * Window>Preferences>Java>Code Generation>Code and Comments
006:         */
007:        package org.jasig.portal.channels.jsp;
008:
009:        import java.util.Map;
010:
011:        import javax.servlet.http.HttpSession;
012:
013:        import org.jasig.portal.ChannelRuntimeData;
014:        import org.jasig.portal.ChannelStaticData;
015:        import org.jasig.portal.ICacheable;
016:        import org.jasig.portal.PortalEvent;
017:        import org.jasig.portal.properties.PropertiesManager;
018:
019:        /**
020:         * Implementors of this interface can be used in the Jsp Channel Type to 
021:         * a create a channel whose content is served up from JSPs in a model II 
022:         * controller architecture. The controller can act on each incoming request 
023:         * via the processRuntimeData method and alter its internal model accordingly.
024:         * There is one controller intance per channel per user so it can safely use
025:         * instance variables. Any business objects that need to be passed to one of
026:         * its JSPs via the request object should be placed in the Map returned from
027:         * that method.
028:         * 
029:         * @author Mark Boyd
030:         */
031:        public interface IController extends ICacheable {
032:            public static String JSP_DEPLOY_PATH = PropertiesManager
033:                    .getProperty(Deployer.JSP_DEPLOY_DIR_PROP,
034:                            "/WEB-INF/classes");
035:
036:            /**
037:             * Allows the plugged-in controller for the jsp channel to have access to 
038:             * publish-time parameters and other information about the user. Included 
039:             * in the set are parameters whose keys end in ".jsp". Additionally, there
040:             * will be one parameter whose key is "controllerClass". The are used by
041:             * the jsp channel itself. For more information see the indicated method.
042:             * Beyond these two restrictions on keys any other parameters can be 
043:             * specified during publishing that are needed by the controller to perform
044:             * its work. In addition to the static data the HttpSession is also passed
045:             * in and can be used to set both session and application scope values to
046:             * be used in its JSPs.
047:             * 
048:             * @see org.jasig.portal.channels.jsp.IController#getJspToRender()
049:             */
050:            public void setStaticData(ChannelStaticData csd);
051:
052:            /** Allows the plugged-in controller for the jsp channel to know about 
053:             * channel events.
054:             * 
055:             * @see org.jasig.portal.IChannel#receiveEvent(org.jasig.portal.PortalEvent)
056:             */
057:            public void receiveEvent(PortalEvent ev);
058:
059:            /**
060:             * Allows the plugged-in controller for the jsp channel to have access to 
061:             * request-time parameters passed back to the channel instance and to take
062:             * action internally. Any objects that should be passed to the jsp to be
063:             * delegated to should be placed in the returned Map object and they will
064:             * be added to the request.setAttribute() method using the same keys and
065:             * values. If no objects are to be passed to the jsp via the request object
066:             * then this method can return null. If a Map is returned two parameters 
067:             * will be passed added in to be passed to the 
068:             * jsp by the containing Jsp Channel type and will override values having 
069:             * the same key already located within the Map passed back from the 
070:             * controller. These are "baseActionUrl" and "baseMediaUrl".
071:             */
072:            public Map processRuntimeData(ChannelRuntimeData drd, HttpSession s);
073:
074:            /**
075:             * Returns a Map of jsp pages that are exposed by the controller.  This
076:             * map is a name/value pair, where the name is the actual jsp channel name
077:             * and the value is the request path.
078:             *
079:             * Process flow of the channel framework dictates that the map should be
080:             * available to the controlling channel during the setStaticData method
081:             * call.
082:             *
083:             * An example of the values that would be typically be placed in the map by
084:             * the controller is:
085:             * 
086:             * <pre>
087:             * jspmap.put("show.UserInfo.jsp","jsps/user.jsp"); 
088:             * </pre>
089:             *
090:             **/
091:            public Map getJspMap();
092:
093:            /**
094:             * Returns the id of the jsp that should be delegated to for this request. 
095:             * 
096:             * The
097:             * set of ids that can be returned and the jsps that each id maps to is defined
098:             * in the getJspMap method. Their value
099:             * indicates the location of the specific jsp page to be used. The location 
100:             * returned follows the pattern used by 
101:             * java.lang.Class.getResource(). If the value begins with a "/" it is left 
102:             * unchanged; otherwise, the package name of the
103:             * controller class is prepended to the value after converting "." to "/". In
104:             * either case the location is expected to be relative to the 
105:             * "WEB-INF/classes" directory for the webapp and the JSP is then delegated 
106:             * to using a request dispatcher. If the controller, its JSPs, and any 
107:             * other resource are  is deployed as a CAR the Channel class extracts
108:             * and class files and JSPs into WEB-INF/classes in package relative 
109:             * locations so that the web server can compile the JSPs and so that the
110:             * JSPs can access the classes. All other resources remain within the CAR
111:             * and are accesses appropriately by the Channel.     * 
112:             *
113:             * An example of the values that would be typically be placed in the map by
114:             * the controller is:
115:             * 
116:             * <pre>
117:             * map.put("show.UserInfo.jsp","jsps/user.jsp"); 
118:             * </pre>
119:             *
120:             * For the above example if the controller were in the com.sct.myChannel 
121:             * package and this method returned "show.UserInfo.jsp" then the fully 
122:             * qualified path specified to acquire the dispatcher would be:
123:             * 
124:             * "/WEB-INF/classes/com/sct/myChannel/jsp/user.jsp"
125:             *  
126:             * This method should never return a value of null. If the last content 
127:             * generated by the channel should be used the ICacheable implementations
128:             * should indicate such behavior and prevent this method from being 
129:             * called. This method will only be called when new rendering is required
130:             * as dictated by reponses to the ICacheable implementation methods.
131:             */
132:            public String getJspToRender();
133:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.