+

Search Tips   |   Advanced Search

Portal, V6.1


 

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.

<?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>mail</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>Policy manager for the IBM Common Mail Portlet</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>Mail</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>ibm.portal.PolicyEditorCPP</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>ManagerResKey</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>Mail</value>
    </policyValue>
    <policyValue 
      Name="PznTypeLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="SendAttachment"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue 
      Name="SendAttachmentLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="ReceiveAttachment"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue 
      Name="ReceiveAttachmentLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="SaveMessages"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>true</value>
    </policyValue>
    <policyValue 
      Name="SaveMessagesLock"
      Factory="com.ibm.wps.policy.parse.BooleanFactory">
      <value>false</value>
    </policyValue>
    <policyValue 
      Name="Remote"
      Factory="com.ibm.wps.policy.parse.StringFactory">
      <value>Remote Manager</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="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>

</policyList>

 

Parent topic

Sample Policy XML configuration files

 

Related reference


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