+

Search Tips   |   Advanced Search

Portal, V6.1


 

createThemePolicyNode.xml

This sample defines Theme policies that can be applied to portal Web pages. If you export and examine this sample file, you will see that the policy list includes the policy sub-nodes for the predefined Theme policies for portal Web pages.

 

Theme policies

The policy sub-nodes for the predefined
Theme policies for portal Web pages include the following:

Only two policy sub-nodes are documented here. Compare the first policy definition, Theme Node, with the Double Top Navigation Theme Policy, to see how the name/value pairs of Theme policy attributes are set. Give particular attention to the Path attributes to understand how the policy path is specified relative to the nodes of the content repository tree. Review the complete sample in the exported file to see the additional Theme policy definitions for portal Web pages.

<?xml version="1.0" encoding="UTF-8"?>
<policyList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:noNamespaceSchemaLocation="Policy.xsd">
  <policy>
    <policyValue 
      Name="Path"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="PathLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="Type"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>theme</value>
    </policyValue>
    <policyValue 
      Name="TypeLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="Description"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>Description of theme node</value>
    </policyValue>
    <policyValue 
      Name="DescriptionLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="Title"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>theme</value>
    </policyValue>
    <policyValue 
      Name="TitleLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="Editor"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="EditorLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="NameResKey"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="NameResKeyLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="PznRule"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="PznRuleLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="PznType"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>theme</value>
    </policyValue>
    <policyValue 
      Name="PznTypeLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="Remote"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="RemoteLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="PathType"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="PathTypeLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderMainMenu"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderMainMenuLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderTopNavigation"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderTopNavigationLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderMainMenuActions"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderMainMenuActionsLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderSelfCare"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderSelfCareLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderBreadCrumbTrail"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderBreadCrumbTrailLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderSearch"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderSearchLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderToolBar"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderToolBarLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderContentPalette"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderContentPaletteLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderPeoplePalette"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderPeoplePaletteLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderContextMenus"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderContextMenusLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderSideNavigation"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderSideNavigationLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderTaskBar"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderTaskBarLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderFavorites"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderFavoritesLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderExtensions"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderExtensionsLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderBannerTitleGraphic"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderBannerTitleGraphicLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderBannerTitle"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderBannerTitleLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="renderPortletFragmentIDAnchor"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderPortletFragmentIDAnchorLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="breadCrumbMaxLevels"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>5</value>
    </policyValue>
    <policyValue
      Name="breadCrumbMaxLevelsLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    `<policyValue
      Name="breadCrumbStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>1</value>
    </policyValue>
    <policyValue
      Name="breadCrumbStartLevelLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="rootNavigationStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>1</value>
    </policyValue>
    <policyValue
      Name="rootNavigationStartLevelLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="rootNavigationStopLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>1</value>
    </policyValue>
    <policyValue
      Name="rootNavigationStopLevelLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="topNavigationNumRows"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>1</value>
    </policyValue>
    <policyValue
      Name="topNavigationNumRowsLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="topNavigationStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>2</value>
    </policyValue>
    <policyValue
      Name="topNavigationStartLevelLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="topNavigationStopLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>2</value>
    </policyValue>
    <policyValue
      Name="topNavigationStopLevelLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue
      Name="sideNavigationStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>3</value>
    </policyValue>
    <policyValue
      Name="sideNavigationStartLevelLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="Version"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>1.0</value>
    </policyValue>
    <policyValue 
      Name="VersionLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
  </policy>
  <policy>
    <policyValue 
      Name="Path"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="Type"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>theme</value>
    </policyValue>
    <policyValue 
      Name="Description"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>Double Top Navigation Theme Policy</value>
    </policyValue>
    <policyValue 
      Name="Title"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>DoubleTopNav</value>
    </policyValue>
    <policyValue 
      Name="PznRule"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="PznType"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>DoubleTopNav</value>
    </policyValue>
    <policyValue 
      Name="Remote"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value></value>
    </policyValue>
    <policyValue 
      Name="PathType"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>/theme</value>
    </policyValue>
    <policyValue
      Name="renderMainMenu"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderTopNavigation"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderMainMenuActions"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderSelfCare"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderBreadCrumbTrail"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderSearch"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderToolBar"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderContentPalette"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderPeoplePalette"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderContextMenus"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderSideNavigation"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderTaskBar"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderFavorites"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderExtensions"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderBannerTitleGraphic"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderBannerTitle"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="renderPortletFragmentIDAnchor"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue
      Name="breadCrumbMaxLevels"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>5</value>
    </policyValue>
    `<policyValue
      Name="breadCrumbStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>1</value>
    </policyValue>
    <policyValue
      Name="rootNavigationStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>1</value>
    </policyValue>
    <policyValue
      Name="rootNavigationStopLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>1</value>
    </policyValue>
    <policyValue
      Name="topNavigationNumRows"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>2</value>
    </policyValue>
    <policyValue
      Name="topNavigationStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>2</value>
    </policyValue>
    <policyValue
      Name="topNavigationStopLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>3</value>
    </policyValue>
    <policyValue
      Name="sideNavigationStartLevel"
      Factory="com.ibm.wps.policy.parse.IntegerFactory">
      <value>4</value>
    </policyValue>
    <policyValue 
      Name="Version"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>1.0</value>
    </policyValue>
  </policy>

 

Parent topic

Sample Policy XML configuration files

 

Related reference


Policy XML file
createPolicyResourceType.xml
createMailNode.xml
createRootMailNode.xml
createWebPageNode.xml