WebSphere Issues

25/05/2011

Export and Import theme policies for WP6.x

Filed under: WebSphere Portal — Ishtiaque @ 11:40 am

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

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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

Blog at WordPress.com.

%d bloggers like this: