Export and Import theme policies for WP6.x

1. Create an xml file exportThemePolicy.xml and paste either of the following contents in it:

The file specified is the location to where the exported information is written. The following example exports all theme policies.

<?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”&gt;
<portal action=”locate”>
<policy-node action=”export” label=”WebPage” type=”theme” path=””>
<url>file:///C:/exportedThemePolicies.xml</url>
</policy-node>
</portal>
</request>

The following example exports only the TestThemePolicy theme policy:

<?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”&gt;
<portal action=”locate”>
<policy-node action=”export” label=”WebPage” type=”theme” path=”TestThemePolicy”>
<url>file:///C:/exportedTestThemePolicy.xml</url>
</policy-node>
</portal>
</request>

2. Run the following command to export the theme policy:

<portal_install_root>binxmlaccess  -url http://localhost:10040/wps/config -user wpsadmin -password wpsadmin -in C:exportThemePolicy.xml –out C:exportThemePolicyOut.xml

3. Create a xml file such as importTestThemePolicy.xml and paste following contents in it to import the exported theme policy:

<?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”&gt;
<portal action=”locate”>
<policy-node action=”update” label=”WebPage” type=”” path=””>
<url>file:///C:/exportedTestThemePolicy.xml</url>
</policy-node>
</portal>
</request>

4. Run the following command to import the theme policy on target server:

<portal_install_root>binxmlaccess -url http://localhost:10040/wps/config -user wpsadmin -password wpsadmin -in C:importTestThemePolicy.xml –out C:exportThemePolicyResult.xml

References:

http://sivavaka.blogspot.com/2011/02/exporting-theme-policies-in-wp7.html

http://publib.boulder.ibm.com/infocenter/wpdoc/v6r1/index.jsp?topic=/com.ibm.wp.ent.doc_v615/dev/dgn_thempolicy.html

Advertisements

About Ishtiaque

I am IBM Certified Infrastructure Systems Architect, Linux Foundation Certified System Administrator, Oracle Certified Programmer in Java and Web Component Developer, and TOGAF 9 certified with over 10 years of support and development experience in IBM middleware software and Java. Additionally, have a sound grip in databases and OpenStack administration. I hold the following certifications: IBM Certified Infrastructure Systems Architect Linux Foundation Certified System Administrator (LFCS) TOGAF 9 Certified Oracle Certified Expert, Java EE6 Web Component Developer Oracle Certified Professional – Java 6 Programmer ITIL v3 Foundation Certified IBM Certified Solution Architect – Cloud Computing Infrastructure V1 IBM Certified System Administrator – WebSphere Portal V8, V7, V6.1, V6 IBM Certified System Administrator – WebSphere Application Server V7, V6.1 IBM Certified System Administrator – AIX V7 IBM Certified System Administrator – WebSphere MQ V7 IBM Certified Deployment Professional – Business Process Manager Advanced V7.5 IBM Certified Solution Advisor – Cloud Computing Architecture V3 IBM Certified Solution Developer – WebSphere Portal V5.1
This entry was posted in WebSphere Portal. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s