Java Doc for Portal.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » portal » api » 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 » ERP CRM Financial » sakai » org.sakaiproject.portal.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.portal.api.Portal

All known Subclasses:   org.sakaiproject.portal.charon.SkinnableCharonPortal,
Portal
public interface Portal (Code)
This interface represents a portal and is used mainly by portal handlers that will not know the details of the portal implimentation.
author:
   ieb
since:
   Sakai 2.4
version:
   $Rev: 29143 $


Field Summary
final public static  StringATTR_ERROR
     ThreadLocal attribute set while we are processing an error.
final public static  StringATTR_SITE_PAGE
     Session attribute root for storing a site's last page visited - just append the site id.
final public static  StringCONFIG_AUTO_RESET
    
final public static  StringDEFAULT_PORTAL_CONTEXT
     The default portal name is none is specified.
final public static  intERROR_GALLERY
    
final public static  intERROR_SITE
     Error response modes.
final public static  intERROR_WORKSITE
    
final public static  StringPARAM_FORCE_LOGIN
     Parameter value to allow anonymous users of gallery mode to be sent to the gateway site as anonymous user (like the /portal URL) instead of making them log in (like worksite, site, and tool URLs).
final public static  StringPARAM_FORCE_LOGOUT
    
final public static  StringTOOLCONFIG_HELP_DOCUMENT_ID
    
final public static  StringTOOLCONFIG_HELP_DOCUMENT_URL
    
final public static  StringTOOLCONFIG_SHOW_HELP_BUTTON
    
final public static  StringTOOLCONFIG_SHOW_RESET_BUTTON
    


Method Summary
 StringcalcSiteType(String siteId)
     work out the type of the site based on the site id.
 MapconvertSiteToMap(HttpServletRequest req, Site s, String prefix, String currentSiteId, String myWorkspaceSiteId, boolean includeSummary, boolean expandSite, boolean resetTools, boolean doPages, String toolContextPath, boolean loggedIn)
    
 List<Map>convertSitesToMaps(HttpServletRequest req, List mySites, String prefix, String currentSiteId, String myWorkspaceSiteId, boolean includeSummary, boolean expandSite, boolean resetTools, boolean doPages, String toolContextPath, boolean loggedIn)
    
 voiddoError(HttpServletRequest req, HttpServletResponse res, Session session, int mode)
    
 voiddoLogin(HttpServletRequest req, HttpServletResponse res, Session session, String returnPath, boolean skipContainer)
    
 voiddoLogout(HttpServletRequest req, HttpServletResponse res, Session session, String returnPath)
     Process a logout
Parameters:
  req - Request object
Parameters:
  res - Response object
Parameters:
  session - Current session
Parameters:
  returnPath - if not null, the path to use for the end-user browser redirectafter the logout is complete.
 voidforwardPortal(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, ToolConfiguration siteTool, String skin, String toolContextPath, String toolPathInfo)
    
 voidforwardTool(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, Placement placement, String skin, String toolContextPath, String toolPathInfo)
    
 StringgetPlacement(HttpServletRequest req, HttpServletResponse res, Session session, String placementId, boolean doPage)
    
 StringgetPortalContext()
     Get the context name of the portal.
 StringgetPortalPageUrl(ToolConfiguration siteTool)
    
 ServletContextgetServletContext()
    
 StringgetUserEidBasedSiteId(String userId)
    
 voidincludeBottom(PortalRenderContext rcontext)
     include the model section that relates to the bottom of the page.
 voidincludeLogin(PortalRenderContext rcontext, HttpServletRequest req, Session session)
    
 PortalRenderContextincludePortal(HttpServletRequest req, HttpServletResponse res, Session session, String siteId, String toolId, String toolContextPath, String prefix, boolean doPages, boolean resetTools, boolean includeSummary, boolean expandSite)
    
 MapincludeTool(HttpServletResponse res, HttpServletRequest req, ToolConfiguration placement)
    
 booleanredirectIfLoggedOut(HttpServletResponse res)
    
 voidsendResponse(PortalRenderContext rcontext, HttpServletResponse res, String template, String contentType)
    
 voidsetupForward(HttpServletRequest req, HttpServletResponse res, Placement p, String skin)
    
 PortalRenderContextstartPageContext(String siteType, String title, String skin, HttpServletRequest request)
    

Field Detail
ATTR_ERROR
final public static String ATTR_ERROR(Code)
ThreadLocal attribute set while we are processing an error.



ATTR_SITE_PAGE
final public static String ATTR_SITE_PAGE(Code)
Session attribute root for storing a site's last page visited - just append the site id.



CONFIG_AUTO_RESET
final public static String CONFIG_AUTO_RESET(Code)
Configuration option to enable/disable state reset on navigation change



DEFAULT_PORTAL_CONTEXT
final public static String DEFAULT_PORTAL_CONTEXT(Code)
The default portal name is none is specified.



ERROR_GALLERY
final public static int ERROR_GALLERY(Code)



ERROR_SITE
final public static int ERROR_SITE(Code)
Error response modes.



ERROR_WORKSITE
final public static int ERROR_WORKSITE(Code)



PARAM_FORCE_LOGIN
final public static String PARAM_FORCE_LOGIN(Code)
Parameter value to allow anonymous users of gallery mode to be sent to the gateway site as anonymous user (like the /portal URL) instead of making them log in (like worksite, site, and tool URLs).



PARAM_FORCE_LOGOUT
final public static String PARAM_FORCE_LOGOUT(Code)



TOOLCONFIG_HELP_DOCUMENT_ID
final public static String TOOLCONFIG_HELP_DOCUMENT_ID(Code)



TOOLCONFIG_HELP_DOCUMENT_URL
final public static String TOOLCONFIG_HELP_DOCUMENT_URL(Code)



TOOLCONFIG_SHOW_HELP_BUTTON
final public static String TOOLCONFIG_SHOW_HELP_BUTTON(Code)



TOOLCONFIG_SHOW_RESET_BUTTON
final public static String TOOLCONFIG_SHOW_RESET_BUTTON(Code)
Names of tool config/registration attributes that control the rendering of the tool's titlebar





Method Detail
calcSiteType
String calcSiteType(String siteId)(Code)
work out the type of the site based on the site id.
Parameters:
  siteId -



convertSiteToMap
Map convertSiteToMap(HttpServletRequest req, Site s, String prefix, String currentSiteId, String myWorkspaceSiteId, boolean includeSummary, boolean expandSite, boolean resetTools, boolean doPages, String toolContextPath, boolean loggedIn)(Code)
convert a single site into a map
Parameters:
  req -
Parameters:
  s -
Parameters:
  prefix -
Parameters:
  currentSiteId -
Parameters:
  myWorkspaceSiteId -
Parameters:
  includeSummary -
Parameters:
  expandSite -
Parameters:
  resetTools -
Parameters:
  doPages -
Parameters:
  toolContextPath -
Parameters:
  loggedIn -



convertSitesToMaps
List<Map> convertSitesToMaps(HttpServletRequest req, List mySites, String prefix, String currentSiteId, String myWorkspaceSiteId, boolean includeSummary, boolean expandSite, boolean resetTools, boolean doPages, String toolContextPath, boolean loggedIn)(Code)
convert sites into a map for the view tree
Parameters:
  req -
Parameters:
  mySites -
Parameters:
  prefix -
Parameters:
  currentSiteId -
Parameters:
  myWorkspaceSiteId -
Parameters:
  includeSummary -
Parameters:
  expandSite -
Parameters:
  resetTools -
Parameters:
  doPages -
Parameters:
  toolContextPath -
Parameters:
  loggedIn -



doError
void doError(HttpServletRequest req, HttpServletResponse res, Session session, int mode) throws ToolException, IOException(Code)
populate the model with error status
Parameters:
  req -
Parameters:
  res -
Parameters:
  session -
Parameters:
  mode -
throws:
  ToolException -
throws:
  IOException -



doLogin
void doLogin(HttpServletRequest req, HttpServletResponse res, Session session, String returnPath, boolean skipContainer) throws ToolException(Code)
perform login
Parameters:
  req -
Parameters:
  res -
Parameters:
  session -
Parameters:
  returnPath -
Parameters:
  skipContainer -
throws:
  ToolException -



doLogout
void doLogout(HttpServletRequest req, HttpServletResponse res, Session session, String returnPath) throws ToolException(Code)
Process a logout
Parameters:
  req - Request object
Parameters:
  res - Response object
Parameters:
  session - Current session
Parameters:
  returnPath - if not null, the path to use for the end-user browser redirectafter the logout is complete. Leave null to use the configuredlogged out URL.
throws:
  ToolException -



forwardPortal
void forwardPortal(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, ToolConfiguration siteTool, String skin, String toolContextPath, String toolPathInfo) throws ToolException, IOException(Code)
forward to a portal url
Parameters:
  tool -
Parameters:
  req -
Parameters:
  res -
Parameters:
  siteTool -
Parameters:
  skin -
Parameters:
  toolContextPath -
Parameters:
  toolPathInfo -
throws:
  IOException -
throws:
  ToolException -



forwardTool
void forwardTool(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, Placement placement, String skin, String toolContextPath, String toolPathInfo) throws ToolException(Code)
forward the request to a tool
Parameters:
  tool -
Parameters:
  req -
Parameters:
  res -
Parameters:
  siteTool -
Parameters:
  skin -
Parameters:
  toolContextPath -
Parameters:
  toolPathInfo -
throws:
  ToolException -



getPlacement
String getPlacement(HttpServletRequest req, HttpServletResponse res, Session session, String placementId, boolean doPage) throws ToolException(Code)
get the placement for the request
Parameters:
  req -
Parameters:
  res -
Parameters:
  session -
Parameters:
  placementId -
Parameters:
  doPage -
throws:
  ToolException -



getPortalContext
String getPortalContext()(Code)
Get the context name of the portal. This is the name used to identify the portal implimentation in the portal service and to other parts of the system. Typically portals will be registered with the portal service using a name and render engines and PortalHandlers will connect to named portals.



getPortalPageUrl
String getPortalPageUrl(ToolConfiguration siteTool)(Code)
get the portal page URL base on the tool supplied
Parameters:
  siteTool -



getServletContext
ServletContext getServletContext()(Code)
Get the servlet context associated with the portal



getUserEidBasedSiteId
String getUserEidBasedSiteId(String userId)(Code)
get the site id for the user
Parameters:
  userId -



includeBottom
void includeBottom(PortalRenderContext rcontext)(Code)
include the model section that relates to the bottom of the page.
Parameters:
  rcontext -



includeLogin
void includeLogin(PortalRenderContext rcontext, HttpServletRequest req, Session session)(Code)
include the part od the view tree needed to render login
Parameters:
  rcontext -
Parameters:
  req -
Parameters:
  session -



includePortal
PortalRenderContext includePortal(HttpServletRequest req, HttpServletResponse res, Session session, String siteId, String toolId, String toolContextPath, String prefix, boolean doPages, boolean resetTools, boolean includeSummary, boolean expandSite) throws ToolException, IOException(Code)
populate the view tree for the model
Parameters:
  req -
Parameters:
  res -
Parameters:
  session -
Parameters:
  siteId -
Parameters:
  toolId -
Parameters:
  toolContextPath -
Parameters:
  prefix -
Parameters:
  doPages -
Parameters:
  resetTools -
Parameters:
  includeSummary -
Parameters:
  expandSite -
throws:
  ToolException -
throws:
  IOException -



includeTool
Map includeTool(HttpServletResponse res, HttpServletRequest req, ToolConfiguration placement) throws IOException(Code)
include the tool part of the view tree
Parameters:
  res -
Parameters:
  req -
Parameters:
  placement -
throws:
  IOException -



redirectIfLoggedOut
boolean redirectIfLoggedOut(HttpServletResponse res) throws IOException(Code)
perform a redirect if logged out
Parameters:
  res -
throws:
  IOException -



sendResponse
void sendResponse(PortalRenderContext rcontext, HttpServletResponse res, String template, String contentType) throws IOException(Code)
prepare the response and send it to the render engine
Parameters:
  rcontext -
Parameters:
  res -
Parameters:
  template -
Parameters:
  contentType -
throws:
  IOException -



setupForward
void setupForward(HttpServletRequest req, HttpServletResponse res, Placement p, String skin) throws ToolException(Code)
setup in preparation for a forward
Parameters:
  req -
Parameters:
  res -
Parameters:
  p -
Parameters:
  skin -



startPageContext
PortalRenderContext startPageContext(String siteType, String title, String skin, HttpServletRequest request)(Code)
get a new render context from the render engine
Parameters:
  siteType -
Parameters:
  title -
Parameters:
  skin -
Parameters:
  request -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.