Class BaseAppNavBean.PagesContentProvider
java.lang.Object
com.webmethods.caf.faces.bean.nav.BaseAppNavBean.PagesContentProvider
- All Implemented Interfaces:
IContentProvider
- Enclosing class:
- BaseAppNavBean
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
List of all page ids in the navigation hierarchy.Class<?>
Returns theIAppNavPage
class.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 Details
-
PagesContentProvider
protected PagesContentProvider()
-
-
Method Details
-
getPropertyKeys
List of all page ids in the navigation hierarchy.- Specified by:
getPropertyKeys
in interfaceIContentProvider
- Returns:
- array of property keys which is typically of type
String
orInteger
-
getType
Returns theIAppNavPage
class.- Specified by:
getType
in interfaceIContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- property java
Class
- Throws:
PropertyNotFoundException
- if property is not supported
-
getValue
Returns the page with the specified id, or null.- Specified by:
getValue
in interfaceIContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- value of the property, can be
null
- Throws:
PropertyNotFoundException
- if property is not supportedELException
-
hasProperty
Returns true.- Specified by:
hasProperty
in interfaceIContentProvider
- Parameters:
propertyKey
- property key of typeString
orInteger
- Returns:
true
if property is supported
-