+

Search Tips   |   Advanced Search

Portal, V6.1


 

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.

<?xml version="1.0" encoding="UTF-8"?>
<request xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd" create-oids="true"
    type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <portal action="locate">
        <policy-node action="update" label="Mail" type="Mail" path="">
             <url>file:///@WpsInstallLocatiowork/createRootMailNode.xml
            </url>
             <access-control externalized="false" owner="@PortalAdminId@"
              private="false">
              <!-- The user role should not automatically propagate to mail policy
              -->
                  <role-block type="inheritance" actionset="User"/>
                  
                  <!-- add back user role for all-authenticated -->
                  <role actionset="User" update="set">
                      <mapping subjectid="all authenticated portal users"
                         subjecttype="user_group" update="set"/>
                  </role>
                  <role actionset="Administrator" update="set">
                        <mapping subjectid="@PortalAdminId@"
                           subjecttype="USER" update="set"/>
                  </role>
                  <role actionset="Administrator" update="set">
                        <mapping subjectid="@PortalAdminGroupId@"
                        subjecttype="USER_GROUP" update="set"/>
                  </role>
              </access-control>
        </policy-node>
    </portal>
</request>

 

Parent topic

Sample Policy XML configuration files

 

Related reference


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