Portal, V6.1
Sample Policy XML configuration files
Use these samples with the XML configuration interface as an alternative to the Resource Policies portlet and the policy editor that are available from the Access section of the Administration page of your work site. Exporting and importing policy XML files is useful when deploying policies on multiple servers and when staging a portal from development and test servers to a production server. The policy XML configuration samples allow you to extend policy definitions and to create or customize policy types and policy settings for portal resources. To work with the Policy Manager API, refer to the Javadoc information for the package com.ibm.policy.manager in the directory WP_PROFILE/ConfigEngine/doc/Java™doc/api_docs.
- Policy XML file
Before you work with the XML configuration samples for policies you should become familiar with the policy XML file by examining an exported policy definition.- createPolicyResourceType.xml
This sample defines the policy type for a portal resource type.Review this sample to see how the name/value pairs of policy attributes are set. Do not edit this XML sample. Do not attempt to use this XML sample with the XML configuration interface. This XML sample is provided for reference only.
- createMailNode.xml
This sample imports the createMailNode.xml file and creates the Mail root policy. If your deployed portal does not have a main (root) policy for Mail, you can create the main Mail policy type using this sample, which is located in WP_PROFILE/ConfigEngine/work.- createRootMailNode.xml
This sample defines the policy for the Common Mail portlet. This is the only policy currently defined in the policy list of this sample. The
policy definition specifies the values for the collection of attributes that includes the policy path in the content repository, the policy type (Mail) the policy node in the parent-child hierarchy that supports policy specialization, the policy editor, policy rules, policy settings, and policy version. The
policy settings in this sample specify the choices available in the Mail policy editor for working with mail messages and attachments. Review this sample to see how the name/value pairs of Mail policy attributes are set.- createWebPageNode.xml
This sample creates the Theme policy node for Web page theme policies. The Theme Policy Node does not appear in the Resource Policies portlet; it cannot be managed using the administration portlet or the policy editor. You work with Theme policies using the XML definition files.- 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.
Parent topic
Reference
Related concepts
Policy principles
Policy rules
Related tasks
Work with policies
Work with Mail policy definitions
Related reference
Policy settings for mail
Policy settings for composite applications
Mail policy attributes