|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.portalsite.impl.PortalSiteRequestContextImpl
public class PortalSiteRequestContextImpl
This class encapsulates managed request state for and interface to the portal-site component.
Field Summary | |
---|---|
private Map |
menuDefinitionLocatorCache
menuDefinitionLocatorCache - cached menu definition locators for relative menus valid for request |
private Set |
pageMenuDefinitionNames
pageMenuDefinitionNames - cached menu definition names for request page |
private boolean |
requestFallback
requestFallback - flag indicating whether request should fallback to root folder if locators do not select a page or access is forbidden |
private org.apache.jetspeed.om.page.Page |
requestPage
page - cached request profiled page proxy |
private Map |
requestProfileLocators
requestProfileLocators - map of request profile locators by locator names |
private org.apache.jetspeed.om.folder.Folder |
requestRootFolder
rootFolder - cached request profiled root folder proxy |
private org.apache.jetspeed.page.document.NodeSet |
rootLinks
rootLinks - cached node set of visible link proxies |
private boolean |
rootLinksCached
rootLinksCached - cached flag for link proxies |
private PortalSiteSessionContextImpl |
sessionContext
sessionContext - component session state/interface |
private org.apache.jetspeed.page.document.NodeSet |
siblingFolders
siblingFolders - cached node set of visible sibling folder proxies |
private boolean |
siblingFoldersCached
siblingFoldersCached - cached flag for sibling folder proxies |
private org.apache.jetspeed.page.document.NodeSet |
siblingPages
siblingPages - cached node set of visible sibling page proxies |
private boolean |
siblingPagesCached
siblingPagesCached - cached flag for sibling page proxies |
private boolean |
useHistory
useHistory - flag indicating whether to use visited page history to select default page per site folder |
Constructor Summary | |
---|---|
PortalSiteRequestContextImpl(PortalSiteSessionContextImpl sessionContext,
Map requestProfileLocators)
PortalSiteRequestContextImpl - constructor |
|
PortalSiteRequestContextImpl(PortalSiteSessionContextImpl sessionContext,
Map requestProfileLocators,
boolean requestFallback)
PortalSiteRequestContextImpl - constructor |
|
PortalSiteRequestContextImpl(PortalSiteSessionContextImpl sessionContext,
Map requestProfileLocators,
boolean requestFallback,
boolean useHistory)
PortalSiteRequestContextImpl - constructor |
Method Summary | |
---|---|
private static org.apache.jetspeed.page.document.NodeSet |
filterHiddenNodes(org.apache.jetspeed.page.document.NodeSet nodes)
filterHiddenNodes - utility to filter hidden node proxies out of node sets |
Set |
getCustomMenuNames()
getCustomMenuNames - get set of custom menu names available as defined for the request profiled page and folder |
org.apache.jetspeed.om.folder.Folder |
getFolder()
getFolder - get folder proxy relative to request profiled page |
Map |
getLocators()
getLocators - get profile locators by locator names |
org.apache.jetspeed.om.page.Page |
getManagedPage()
getManagedPage - get request profiled concrete page instance as managed by the page manager |
org.apache.jetspeed.portalsite.Menu |
getMenu(String name)
getMenu - get instantiated menu available for the request profiled page and folder |
org.apache.jetspeed.portalsite.Menu |
getMenu(String name,
Set names)
getMenu - get instantiated menu available for the request profiled page and folder, avoiding cyclic menu definition loops by propagating related menu names set from menu construction |
org.apache.jetspeed.om.page.Page |
getPage()
getPage - get request profiled page proxy |
org.apache.jetspeed.om.folder.Folder |
getParentFolder()
getParentFolder - get parent folder proxy relative to request profiled page |
org.apache.jetspeed.om.folder.Folder |
getRootFolder()
getRootFolder - get root profiled folder proxy |
org.apache.jetspeed.page.document.NodeSet |
getRootLinks()
getRootLinks - get node set of link proxies relative to profiled root folder |
org.apache.jetspeed.portalsite.PortalSiteSessionContext |
getSessionContext()
getSessionContext - get component session context |
org.apache.jetspeed.page.document.NodeSet |
getSiblingFolders()
getSiblingFolders - get node set of sibling folder proxies relative to request profiled page, (includes profiled page folder proxy) |
org.apache.jetspeed.page.document.NodeSet |
getSiblingPages()
getSiblingPages - get node set of sibling page proxies relative to request profiled page, (includes profiled page proxy) |
Set |
getStandardMenuNames()
getStandardMenuNames - get set of available standard menu names |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PortalSiteSessionContextImpl sessionContext
private Map requestProfileLocators
private boolean requestFallback
private boolean useHistory
private org.apache.jetspeed.om.page.Page requestPage
private org.apache.jetspeed.page.document.NodeSet siblingPages
private boolean siblingPagesCached
private org.apache.jetspeed.page.document.NodeSet siblingFolders
private boolean siblingFoldersCached
private org.apache.jetspeed.om.folder.Folder requestRootFolder
private org.apache.jetspeed.page.document.NodeSet rootLinks
private boolean rootLinksCached
private Set pageMenuDefinitionNames
private Map menuDefinitionLocatorCache
Constructor Detail |
---|
public PortalSiteRequestContextImpl(PortalSiteSessionContextImpl sessionContext, Map requestProfileLocators, boolean requestFallback, boolean useHistory)
sessionContext
- session contextrequestProfileLocators
- request profile locatorsrequestFallback
- flag specifying whether to fallback to root folder
if locators do not select a page or access is forbiddenuseHistory
- flag indicating whether to use visited page
history to select default page per site folderpublic PortalSiteRequestContextImpl(PortalSiteSessionContextImpl sessionContext, Map requestProfileLocators, boolean requestFallback)
sessionContext
- session contextrequestProfileLocators
- request profile locatorsrequestFallback
- flag specifying whether to fallback to root folder
if locators do not select a page or access is forbiddenpublic PortalSiteRequestContextImpl(PortalSiteSessionContextImpl sessionContext, Map requestProfileLocators)
sessionContext
- session contextrequestProfileLocators
- request profile locatorsMethod Detail |
---|
public org.apache.jetspeed.portalsite.PortalSiteSessionContext getSessionContext()
getSessionContext
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
public Map getLocators()
getLocators
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
public org.apache.jetspeed.om.page.Page getManagedPage() throws org.apache.jetspeed.page.document.NodeNotFoundException
getManagedPage
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.om.page.Page getPage() throws org.apache.jetspeed.page.document.NodeNotFoundException
getPage
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.om.folder.Folder getFolder() throws org.apache.jetspeed.page.document.NodeNotFoundException
getFolder
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.page.document.NodeSet getSiblingPages() throws org.apache.jetspeed.page.document.NodeNotFoundException
getSiblingPages
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.om.folder.Folder getParentFolder() throws org.apache.jetspeed.page.document.NodeNotFoundException
getParentFolder
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.page.document.NodeSet getSiblingFolders() throws org.apache.jetspeed.page.document.NodeNotFoundException
getSiblingFolders
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.om.folder.Folder getRootFolder() throws org.apache.jetspeed.page.document.NodeNotFoundException
getRootFolder
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.page.document.NodeSet getRootLinks() throws org.apache.jetspeed.page.document.NodeNotFoundException
getRootLinks
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic Set getStandardMenuNames()
getStandardMenuNames
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
public Set getCustomMenuNames() throws org.apache.jetspeed.page.document.NodeNotFoundException
getCustomMenuNames
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.portalsite.Menu getMenu(String name) throws org.apache.jetspeed.page.document.NodeNotFoundException
getMenu
in interface org.apache.jetspeed.portalsite.PortalSiteRequestContext
name
- menu definition name
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedpublic org.apache.jetspeed.portalsite.Menu getMenu(String name, Set names) throws org.apache.jetspeed.page.document.NodeNotFoundException
name
- menu definition namenames
- set of related menu definition names
org.apache.jetspeed.page.document.NodeNotFoundException
- if page not found
SecurityException
- if page view access not grantedprivate static org.apache.jetspeed.page.document.NodeSet filterHiddenNodes(org.apache.jetspeed.page.document.NodeSet nodes)
nodes
- proxy node set to filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |