Expression language beans for accessing programming models | HCL Digital Experience
Expression language (EL) beans are available for accessing WebSphere Programming models. These beans are accessed through the PortalBean represented in the global namespace by wp. The beans provide access to HCL Digital Experience models and associated classes.
PortalBean
The PortalBean provides access to EL Beans that represent some of the HCL Portal models. You can use these models to access resource information in your JSPs.
You can access the PortalBean (wp) with the following items. Append the following beans to
wp.
to create a bean in your JSP. For example, wp.themeList.current
gets the current element and
returns Theme.
- wp.ac
- Provides read access to the current access control permissions for a resource.
- AccessControl
- Provides read access to the current access control node for a resource.
- wp.analyticsTagList
- Attaches marketing information to Portal resources such as portal pages,
portlets, or web content items. Reads the analytics tags that are associated
with an identifiable portal resource.
- AnalyticsTag
- The AnalyticsTag expression bean represents a single analytics tag.
- wp.clientProfile
- Provides access to the client profile.
- wp.identification
- Provides access to the identification services serialize and deserialize.
- wp.languageList
- Provides access to the list of languages that are defined in portal.
- Language
- Provides access to the interface that represents a portal language.
- wp.layoutModel
- Provides access to the tree model representation of the layout of a page.
- LayoutModel
- Provides access to the tree model representation object of the
layout of a page.
- LayoutContainer
- Provides access to the interface that represents a container in a LayoutModel.
- LayoutControl
- Provides access to the interface that represents a control in a LayoutModel.
- wp.localizedDescription
- Provides access to the description of the currently rendered page.
- wp.localizedTitle
- Provides access to the title of the currently rendered page.
- wp.metadata
- Provides access to the aggregated metadata of a node. The metadata that can be provided by individual nodes of the content model are combined according to the hierarchy that the content model exposes for these nodes. Values set on the node itself take precedence over values set for its parents.
- wp.moduleList
- The module list bean accesses modules that are part of the modularized theme
architecture. You can query individual modules and their attributes and
identify of the currently used modules within the scope of the currently
selected and rendered page and theme.
- Module
- Represents one individual module.
- CurrentModuleList
- The current module list always represents the list of modules
within the scope of the current request, which is the currently
selected page and theme. This module iterates through all
modules, locate individual modules and query their capabilities.
This is especially useful for portlet developers to check
whether certain capabilities are available on the page or not.
- Module
- Represents one individual module.
- ModuleCapabilitiesList
- Represents the aggregated capabilities of a list of
modules. This is usually the non-deferred or
deferred capabilities of the currently selected page
and depends on how this object was fetched. It is
useful for portlet developers to check whether
certain capabilities are available on the page or not.
- ModuleCapability
- Represents one capability as defined by a module.
- wp.navigationModel
- Provides access to the navigation model.
- NavigationNode
- Provides access to a navigation node in a navigation model.
- ContentNode
- Provides access to a content node. This interface offers a way to obtain the type of the content node.
- wp.publicRenderParam
- Public render parameters can be used by portlets to share context information. They are
addressed with qualified names. The
wp.publicRenderParam
expression bean can be used within a theme or theme module to read the first String value of a public render parameter. - wp.publicRenderParamValues
- The
wp.publicRenderParamValues
expression bean can be used within a theme or theme module to read the values of a public render parameter. The public render parameter is read in the context of the currently selected page that is determined internally. - wp.rep
- Provides access to the set of configuration entries for the specified resource environment provider.
- Properties
- Object representing a set of properties mad available as part of the resource environment provider.
- wp.selectionModel
- Provides access to a selection model for a navigation model.
- NavigationNode
- Provides access to a navigation node in a navigation model.
- ContentNode
- Provides access to a content node. This interface offers a way to obtain the type of the content node.
- wp.themeConfig
- Encapsulates the theme configuration parameter lookup process.
- wp.themeList
- Provides access to all themes in the system and the currently selected theme.
- Theme
- Provides access to the attributes of one theme.
- ProfileList
- Provides access to all profiles in a theme and the
currently selected profile.
- Profile
- Provides access to the attributes of one profile.
- wp.title
- Provides access to the title of the currently rendered page or the title information set by a portlet.
- wp.user
- Provides access to the active user.
Common beans
- Common beans
- The following beans are returned by many different beans and are used flexibly.
- Description
- Provides access to the description of certain objects such as Navigation, Content, Theme, Profile, and others.
- Metadata
- Provides access to the metadata of certain objects such as Navigation, Content, Theme, Profile, and others.
- Title
- Provides access to the title of certain objects such as Navigation, Content, Theme, Profile, and others.
- UrlGeneration
- Creates a portal URL you can control with attributes.
- UrlGenerationPage
- Extends UrlGeneration on a page. All the UrlGeneration
attributes are available in addition to these attributes.
- UrlGenerationPortlet
- Extends UrlGeneration in a portlet. All the UrlGeneration and UrlGenerationPage attributes are available in addition to these attributes.
Other Beans
These beans cannot be accessed through the PortalBean. To access the uiNavigationModel Bean, you must use the uiNavigationModel tag and define the variable name that you want the bean to be available under.
- uiNavigationModel
- By default, the uiNavigationModel lists the visible pages as part of its
iterator. When the Show hidden pages option is
selected in the toolbar, it also lists the hidden pages. There is a mobile
hidden flag for pages. The model also helps you specify a mobile test device
class expression, which is used to evaluate if the system is rendered as
part of a mobile request.
- uiNavigationNode
- Provides access to a navigation node in a navigation model.