Java Doc for PortalSiteSessionContextImpl.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » portalsite » impl » 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 » jetspeed 2.1.3 » org.apache.jetspeed.portalsite.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jetspeed.portalsite.impl.PortalSiteSessionContextImpl

PortalSiteSessionContextImpl
public class PortalSiteSessionContextImpl implements PortalSiteSessionContext,PageManagerEventListener,HttpSessionActivationListener,HttpSessionBindingListener,Serializable(Code)
This class encapsulates managed session state for and interface to the portal-site component and subscribes to page manager and session events to flush stale state. Note that is object is Serializable since it is designed to be cached in the session. However, because this object is cached only for these two reasons: 1. a performance optimization to reuse SiteViews, and 2. to hold optional folder page history, this object need not be relocatable between J2 instances. Consequently, all data members are marked transient and the isValid() method is used to test whether this object is a valid context for the session or if it was transferred from another server or the persistent session store and needs to be discarded.
author:
   Randy Watler
version:
   $Id: PortalSiteSessionContextImpl.java 553375 2007-07-05 05:37:00Z taylor $



Constructor Summary
public  PortalSiteSessionContextImpl(PageManager pageManager)
    

Method Summary
public  PagegetManagedPage(Page page)
    
public  SiteViewMenuDefinitionLocatorgetMenuDefinitionLocator(Node node, String name)
    
public  MapgetMenuDefinitionLocatorCache()
    
public  ListgetMenuDefinitionLocators(Node node)
    
public  PageManagergetPageManager()
    
public  StringgetPipeline()
    
public  MapgetProfileLocators()
    
public  FoldergetRequestRootFolder(Map requestProfileLocators)
    
public  SiteViewgetSiteView()
    
public  SetgetStandardMenuNames()
    
public  booleanisValid()
    
public  voidnewNode(Node node)
    
public  PortalSiteRequestContextnewRequestContext(Map requestProfileLocators)
    
public  PortalSiteRequestContextnewRequestContext(Map requestProfileLocators, boolean requestFallback)
    
public  PortalSiteRequestContextnewRequestContext(Map requestProfileLocators, boolean requestFallback, boolean useHistory)
    
public  voidremovedNode(Node node)
    
public  PageselectRequestPage(Map requestProfileLocators, boolean requestFallback, boolean useHistory)
    
public  voidsessionDidActivate(HttpSessionEvent event)
    
public  voidsessionWillPassivate(HttpSessionEvent event)
    
public  voidsetMenuDefinitionLocatorCache(Map cache)
    
public  voidsetPipeline(String pipeline)
    
public  voidupdatedNode(Node node)
    
public  voidvalueBound(HttpSessionBindingEvent event)
    
public  voidvalueUnbound(HttpSessionBindingEvent event)
    


Constructor Detail
PortalSiteSessionContextImpl
public PortalSiteSessionContextImpl(PageManager pageManager)(Code)
PortalSiteSessionContextImpl - constructor
Parameters:
  pageManager - PageManager component instance




Method Detail
getManagedPage
public Page getManagedPage(Page page)(Code)
getManagedPage - get concrete page instance from page proxy
Parameters:
  page - page proxy managed page



getMenuDefinitionLocator
public SiteViewMenuDefinitionLocator getMenuDefinitionLocator(Node node, String name)(Code)
getMenuDefinitionLocator - get named node proxy menu definition locator from site view
Parameters:
  node - site view node proxy
Parameters:
  name - menu definition name menu definition locator



getMenuDefinitionLocatorCache
public Map getMenuDefinitionLocatorCache()(Code)
getMenuDefinitionLocatorCache - get menu definition locators cache for absolute menus menu definition locators cache



getMenuDefinitionLocators
public List getMenuDefinitionLocators(Node node)(Code)
getMenuDefinitionLocators - get list of node proxy menu definition locators from site view
Parameters:
  node - site view node proxy definition locator list



getPageManager
public PageManager getPageManager()(Code)
getPageManager - return PageManager component instance PageManager instance



getPipeline
public String getPipeline()(Code)



getProfileLocators
public Map getProfileLocators()(Code)
getProfileLocators - get session profile locators



getRequestRootFolder
public Folder getRequestRootFolder(Map requestProfileLocators) throws NodeNotFoundException(Code)
getRequestRootFolder - select root folder proxy for given profile locators
Parameters:
  requestProfileLocators - map of profile locators for request root folder proxy for request
throws:
  NodeNotFoundException - if not found
throws:
  SecurityException - if view access not granted



getSiteView
public SiteView getSiteView()(Code)
getSiteView - lookup and/or create site view for profile locators of this context site view instance



getStandardMenuNames
public Set getStandardMenuNames()(Code)
getStandardMenuNames - get set of available standard menu names menu names set



isValid
public boolean isValid()(Code)
isValid - return flag indicating whether this context instance is valid or if it is stale after being persisted and reloaded as session state valid context status



newNode
public void newNode(Node node)(Code)
newNode - invoked when the definition of a node is created by the page manager or when the node creation is otherwise detected
Parameters:
  node - new managed node if known



newRequestContext
public PortalSiteRequestContext newRequestContext(Map requestProfileLocators)(Code)
newRequestContext - create a new request context instance with fallback and history
Parameters:
  requestProfileLocators - request profile locators new request context instance



newRequestContext
public PortalSiteRequestContext newRequestContext(Map requestProfileLocators, boolean requestFallback)(Code)
newRequestContext - create a new request context instance with history
Parameters:
  requestProfileLocators - request profile locators
Parameters:
  requestFallback - flag specifying whether to fallback to root folderif locators do not select a page or access is forbidden new request context instance



newRequestContext
public PortalSiteRequestContext newRequestContext(Map requestProfileLocators, boolean requestFallback, boolean useHistory)(Code)
newRequestContext - create a new request context instance
Parameters:
  requestProfileLocators - request profile locators
Parameters:
  requestFallback - flag specifying whether to fallback to root folderif locators do not select a page or access is forbidden
Parameters:
  useHistory - flag indicating whether to use visited pagehistory to select default page per site folder new request context instance



removedNode
public void removedNode(Node node)(Code)
removedNode - invoked when the definition of a node is removed by the page manager or when the node removal is otherwise detected
Parameters:
  node - removed managed node if known



selectRequestPage
public Page selectRequestPage(Map requestProfileLocators, boolean requestFallback, boolean useHistory) throws NodeNotFoundException(Code)
selectRequestPage - select page proxy for request given profile locators
Parameters:
  requestProfileLocators - map of profile locators for request
Parameters:
  requestFallback - flag specifying whether to fallback to root folderif locators do not select a page or access is forbidden
Parameters:
  useHistory - flag indicating whether to use visited pagehistory to select default page per site folder selected page proxy for request
throws:
  NodeNotFoundException - if not found
throws:
  SecurityException - if view access not granted



sessionDidActivate
public void sessionDidActivate(HttpSessionEvent event)(Code)
sessionDidActivate - notification that the session has just been activated
Parameters:
  event - session activation event



sessionWillPassivate
public void sessionWillPassivate(HttpSessionEvent event)(Code)
sessionWillPassivate - notification that the session is about to be passivated
Parameters:
  event - session activation event



setMenuDefinitionLocatorCache
public void setMenuDefinitionLocatorCache(Map cache)(Code)
setMenuDefinitionLocatorCache - set menu definition locators cache for absolute menus menu definition locators cache



setPipeline
public void setPipeline(String pipeline)(Code)



updatedNode
public void updatedNode(Node node)(Code)
updatedNode - invoked when the definition of a node is updated by the page manager or when the node modification is otherwise detected
Parameters:
  node - updated managed node if known



valueBound
public void valueBound(HttpSessionBindingEvent event)(Code)
valueBound - notifies this context that it is being bound to a session and identifies the session
Parameters:
  event - session binding event



valueUnbound
public void valueUnbound(HttpSessionBindingEvent event)(Code)
valueUnbound - notifies this context that it is being unbound from a session and identifies the session
Parameters:
  event - session binding event



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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