| |
|
| 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 $ |
PortalSiteSessionContextImpl | public PortalSiteSessionContextImpl(PageManager pageManager)(Code) | | PortalSiteSessionContextImpl - constructor
Parameters: pageManager - PageManager component instance |
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 |
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 |
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 |
|
|
|