|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.portalsite.view.SiteView
public class SiteView
This class defines the logical view of site content.
Field Summary | |
---|---|
static String |
ALT_CURRENT_PAGE_PATH
ALT_CURRENT_PAGE_PATH - alternate expression used to match the current page |
static String |
CURRENT_PAGE_PATH
CURRENT_PAGE_PATH - expression used to match the current page |
static String |
CUSTOM_PAGE_NAVIGATIONS_MENU_NAME
CUSTOM_*_MENU_NAME - custom menu names |
private org.apache.jetspeed.page.PageManager |
pageManager
pageManager - PageManager component |
private org.apache.jetspeed.om.folder.Folder |
rootFolderProxy
rootFolderProxy - root folder proxy instance |
private List |
searchPaths
searchPaths - validated list of ordered search path objects where paths have no trailing folder separator |
private String |
searchPathsString
searchPathsString - search paths as string |
static String |
STANDARD_BACK_MENU_NAME
STANDARD_*_MENU_NAME - standard menu names |
static String |
STANDARD_BREADCRUMBS_MENU_NAME
|
private static List |
STANDARD_MENU_DEFINITION_LOCATORS
STANDARD_MENU_DEFINITION_LOCATORS - list of standard menu definition locators |
private static Set |
STANDARD_MENU_NAMES
STANDARD_MENU_NAMES - set of supported standard menu names |
static String |
STANDARD_NAVIGATIONS_MENU_NAME
|
static String |
STANDARD_PAGES_MENU_NAME
|
Constructor Summary | |
---|---|
SiteView(org.apache.jetspeed.page.PageManager pageManager)
SiteView - basic constructor |
|
SiteView(org.apache.jetspeed.page.PageManager pageManager,
List searchPaths)
SiteView - validating constructor |
|
SiteView(org.apache.jetspeed.page.PageManager pageManager,
Map locators)
SiteView - validating constructor |
|
SiteView(org.apache.jetspeed.page.PageManager pageManager,
org.apache.jetspeed.profiler.ProfileLocator locator)
SiteView - validating constructor |
|
SiteView(org.apache.jetspeed.page.PageManager pageManager,
String searchPaths)
SiteView - validating constructor |
|
SiteView(org.apache.jetspeed.page.PageManager pageManager,
String[] searchPaths)
SiteView - validating constructor |
Method Summary | |
---|---|
org.apache.jetspeed.om.page.Page |
getManagedPage(org.apache.jetspeed.om.page.Page page)
getManagedPage - get concrete page instance from page proxy; implemented here to hide view proxy manipulation from more general portal site implementation |
SiteViewMenuDefinitionLocator |
getMenuDefinitionLocator(org.apache.jetspeed.page.document.Node node,
String name)
getMenuDefinitionLocator - get named view node proxy menu definition locator; implemented here to hide view proxy manipulation from more general portal site implementation |
List |
getMenuDefinitionLocators(org.apache.jetspeed.page.document.Node node)
getMenuDefinitionLocators - get list of view node proxy menu definition locators; implemented here to hide view proxy manipulation from more general portal site implementation |
List |
getNodeProxies(String regexpPath,
org.apache.jetspeed.page.document.Node currentNode,
boolean onlyViewable,
boolean onlyVisible)
getNodeProxies - get folder, page, or link proxies at relative or absolute path using simple path wildcards and character classes |
org.apache.jetspeed.page.document.Node |
getNodeProxy(String path,
org.apache.jetspeed.page.document.Node currentNode,
boolean onlyViewable,
boolean onlyVisible)
getNodeProxy - get single folder, page, or link proxy at relative or absolute path |
org.apache.jetspeed.page.PageManager |
getPageManager()
getPageManager - return PageManager component instance |
String |
getProfileLocatorName(org.apache.jetspeed.page.document.Node node)
getProfileLocatorName - get view node proxy profile locator name; implemented here to hide view proxy manipulation from more general portal site implementation |
org.apache.jetspeed.om.folder.Folder |
getRootFolderProxy()
getRootFolderProxy - create and return root folder proxy instance |
List |
getSearchPaths()
getSearchPaths - return ordered search paths list that defines this view |
String |
getSearchPathsString()
getSearchPathsString - return search paths as string |
List |
getStandardMenuDefinitionLocators()
getStandardMenuDefinitionLocators - get list of available standard menu definition locators |
Set |
getStandardMenuNames()
getStandardMenuNames - get set of available standard menu names |
private static boolean |
isProxyViewable(org.apache.jetspeed.page.document.Node nodeProxy,
boolean onlyVisible)
isProxyViewable - tests for node proxy visibility in view |
private static List |
makeSearchPathList(Map locators)
makeSearchPathList - construct from profile locators |
private static List |
makeSearchPathList(org.apache.jetspeed.profiler.ProfileLocator locator)
makeSearchPathList - construct from profile locator |
private static List |
makeSearchPathList(String searchPaths)
makeSearchPathList - construct from string |
private static List |
makeSearchPathList(String[] searchPaths)
makeSearchPathList - construct from array |
private static List |
mergeSearchPathList(String locatorName,
org.apache.jetspeed.profiler.ProfileLocator locator,
List searchPaths)
mergeSearchPathList - append search paths from profile locator |
private static String |
pathRegexpPattern(String regexp)
pathRegexpPattern - tests for and converts simple path wildcard and character class regular exressions to perl5/standard java pattern syntax |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CURRENT_PAGE_PATH
public static final String ALT_CURRENT_PAGE_PATH
public static final String STANDARD_BACK_MENU_NAME
public static final String STANDARD_BREADCRUMBS_MENU_NAME
public static final String STANDARD_PAGES_MENU_NAME
public static final String STANDARD_NAVIGATIONS_MENU_NAME
public static final String CUSTOM_PAGE_NAVIGATIONS_MENU_NAME
private static final Set STANDARD_MENU_NAMES
private static final List STANDARD_MENU_DEFINITION_LOCATORS
private org.apache.jetspeed.page.PageManager pageManager
private List searchPaths
private String searchPathsString
private org.apache.jetspeed.om.folder.Folder rootFolderProxy
Constructor Detail |
---|
public SiteView(org.apache.jetspeed.page.PageManager pageManager, List searchPaths)
pageManager
- PageManager component instancesearchPaths
- list of search paths in string or search path
object formpublic SiteView(org.apache.jetspeed.page.PageManager pageManager, String[] searchPaths)
pageManager
- PageManager component instancesearchPaths
- array of search pathspublic SiteView(org.apache.jetspeed.page.PageManager pageManager, String searchPaths)
pageManager
- PageManager component instancesearchPaths
- string of comma separated search pathspublic SiteView(org.apache.jetspeed.page.PageManager pageManager, org.apache.jetspeed.profiler.ProfileLocator locator)
pageManager
- PageManager component instancelocator
- profile locator search specificationpublic SiteView(org.apache.jetspeed.page.PageManager pageManager, Map locators)
pageManager
- PageManager component instancelocators
- map of named profile locator search specificationspublic SiteView(org.apache.jetspeed.page.PageManager pageManager)
pageManager
- PageManager component instanceMethod Detail |
---|
private static List makeSearchPathList(String[] searchPaths)
searchPaths
- array of search paths
private static List makeSearchPathList(String searchPaths)
searchPaths
- string of comma separated search paths
private static List makeSearchPathList(org.apache.jetspeed.profiler.ProfileLocator locator)
locator
- profile locator search specification
private static List makeSearchPathList(Map locators)
locators
- map of named profile locator search specifications
private static List mergeSearchPathList(String locatorName, org.apache.jetspeed.profiler.ProfileLocator locator, List searchPaths)
locatorName
- name of profile locatorlocator
- profile locator search specificationsearchPaths
- list of search paths to merge into
public org.apache.jetspeed.page.PageManager getPageManager()
public List getSearchPaths()
public String getSearchPathsString()
public org.apache.jetspeed.om.folder.Folder getRootFolderProxy() throws org.apache.jetspeed.om.folder.FolderNotFoundException
org.apache.jetspeed.om.folder.FolderNotFoundException
- if not found
SecurityException
- if view access not grantedpublic org.apache.jetspeed.page.document.Node getNodeProxy(String path, org.apache.jetspeed.page.document.Node currentNode, boolean onlyViewable, boolean onlyVisible) throws org.apache.jetspeed.page.document.NodeNotFoundException
path
- single node pathcurrentNode
- current folder or page for relative paths or nullonlyViewable
- node required to be viewableonlyVisible
- node required to be visible, (or current)
org.apache.jetspeed.page.document.NodeNotFoundException
- if not found
SecurityException
- if view access not grantedpublic List getNodeProxies(String regexpPath, org.apache.jetspeed.page.document.Node currentNode, boolean onlyViewable, boolean onlyVisible)
regexpPath
- regular expression node pathcurrentNode
- current folder or page for relative paths or nullonlyViewable
- nodes required to be viewable flagonlyVisible
- node required to be visible, (or current)
private static String pathRegexpPattern(String regexp)
regexp
- - candidate path regular expression
private static boolean isProxyViewable(org.apache.jetspeed.page.document.Node nodeProxy, boolean onlyVisible)
nodeProxy
- test node proxyonlyVisible
- nodes required to be visible
public Set getStandardMenuNames()
public List getStandardMenuDefinitionLocators()
public List getMenuDefinitionLocators(org.apache.jetspeed.page.document.Node node)
node
- node proxy
public SiteViewMenuDefinitionLocator getMenuDefinitionLocator(org.apache.jetspeed.page.document.Node node, String name)
node
- node proxyname
- menu definition name
public String getProfileLocatorName(org.apache.jetspeed.page.document.Node node)
node
- node proxy
public org.apache.jetspeed.om.page.Page getManagedPage(org.apache.jetspeed.om.page.Page page)
page
- page proxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |