Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows |
When staging Mail policies from a development server to a production server, use the XML configuration interface to work with a Mail policy definition that has at least three levels of specialization. Then you can experiment with exporting and updating one or more policy levels and deleting any level of the policy definition.
The following procedure uses examples that relate to the example values provided in the table of the previous topic, Mail policy attributes.
Note:Before you run the XML configuration interface, create a hierarchy of Mail policies using the Resource Policies portlet. From the Administration menu, expand the Access section and click Resource Policies to display the Policy Types. Refine the main Mail policy by creating three levels of child policies. The examples used in the following procedure refer to USAMailChild1, USAMailChild11, and USAMailChild111.
<?xml version="1.0" encoding="UTF-8" ?> <request xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd" create-oids="true" type="export" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <portal action="locate"> <policy-node action="export" label="Mail" type="Mail"> <url>file:///d:/temp/Mail.xml</url> </policy-node> </portal> </request>
<!-- ACTION: create or update the whole Policy --> <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"> <url>file:///D:/Mail/Mail.xml</url> </policy-node> </portal> </request>
<?xml version="1.0" encoding="UTF-8" ?> <!-- ACTION: create or update first-level child Policy --> <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="./USA"> <url>file:///d:/Mail/USAMailChild11.xml</url> </policy-node> </portal> </request>
The following example illustrates an update of the child policy USAMailChild11. This update action imports USAMailChild11 and the child policy USAMailChild111. Note that the Path value is the location in the content repository of the policy condition that the USAMailChild11 policy uses, namely ./USA/USAManager.
<?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="./USA/USAManager"> <url>file:///d:/Mail/USAMailChild111.xml</url> </policy-node> </portal> </request>
The following example illustrates exporting the child policy USAMailChild11 and its child policy USAMailChild111. Note that the Path value is the location in the content repository of the policy condition that the USAMailChild11 policy uses, namely ./USA/USAManager.
<?xml version="1.0" encoding="UTF-8" ?> <request xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd" create-oids="true" type="export" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <portal action="locate"> <policy-node action="export" label="Mail" type="Mail" path="./USA/USAManager"> <url>file:///d:/Mail/USAMailChild11.xml</url> </policy-node> </portal> </request>
The following example illustrates exporting the child policy USAMailChild111. Note that the Path value is the location in the content repository of the policy condition that the USAMailChild111 policy uses, namely ./USA/USAManager/USALocalityName.
<?xml version="1.0" encoding="UTF-8" ?> <request xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd" create-oids="true" type="export" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <portal action="locate"> <policy-node action="export" label="Mail" type="Mail" path="./USA/USAManager/USALocalityName"> <url>file:///d:/Mail/USAMailChild111.xml</url> </policy-node> </portal> </request>
The delete command acts on the policy level you have specified and all levels under it.
The following example illustrates the deletion of the child policy USAMailChild11 and its child policy USAMailChild111. Note that the Path value is the location in the content repository of the policy condition that the USAMailChild11 policy uses, namely ./USA/USAManager.
<?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="delete" type="Mail" path="./USA/USAManager"> </policy-node> </portal> </request>
The following example illustrates the deletion of the child policy USAMailChild111 only. Note that the Path value is the location in the content repository of the policy condition that the USAMailChild111 policy uses, namely ./USA/USAManager/USALocalityName.
<?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="delete" type="Mail" path="./USA/USAManager/USALocalityName"> </policy-node> </portal> </request>