com.webmethods.caf.faces.bean.nav
Class BaseAppNavBean.PagesContentProvider

java.lang.Object
  extended by com.webmethods.caf.faces.bean.nav.BaseAppNavBean.PagesContentProvider
All Implemented Interfaces:
IContentProvider
Enclosing class:
BaseAppNavBean

protected class BaseAppNavBean.PagesContentProvider
extends Object
implements IContentProvider

Map of all pages in the navigation hierarchy, keyed by id. For example, if there is a page with an id of "/foo/bar.view" in the navigation hierarchy, new PagesContentProvider().getValue("/foo/bar.view") will return the IAppNavPage with an id of "/foo/bar.view" (if there is no such page, it will return null).


Constructor Summary
protected BaseAppNavBean.PagesContentProvider()
           
 
Method Summary
 Object[] getPropertyKeys()
          List of all page ids in the navigation hierarchy.
 Class getType(Object propertyKey)
          Returns the IAppNavPage class.
 Object getValue(Object propertyKey)
          Returns the page with the specified id, or null.
 boolean hasProperty(Object propertyKey)
          Returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
toString
 

Constructor Detail

BaseAppNavBean.PagesContentProvider

protected BaseAppNavBean.PagesContentProvider()
Method Detail

getPropertyKeys

public Object[] getPropertyKeys()
List of all page ids in the navigation hierarchy.

Specified by:
getPropertyKeys in interface IContentProvider
Returns:
array of property keys which is typically of type String or Integer

getType

public Class getType(Object propertyKey)
              throws PropertyNotFoundException
Returns the IAppNavPage class.

Specified by:
getType in interface IContentProvider
Parameters:
propertyKey - the property key of type String or Integer
Returns:
property java Class
Throws:
PropertyNotFoundException - if property is not supported

getValue

public Object getValue(Object propertyKey)
                throws EvaluationException,
                       PropertyNotFoundException
Returns the page with the specified id, or null.

Specified by:
getValue in interface IContentProvider
Parameters:
propertyKey - the property key of type String or Integer
Returns:
value of the property, can be null
Throws:
EvaluationException - if error during property evaluation
PropertyNotFoundException - if property is not supported

hasProperty

public boolean hasProperty(Object propertyKey)
Returns true.

Specified by:
hasProperty in interface IContentProvider
Parameters:
propertyKey - property key of type String or Integer
Returns:
true if property is supported