ClonePortlet.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. =================================================================
  4. * Licensed Materials - Property of IBM
  5. * (c) Copyright IBM Corp. 2003, 2010. All rights reserved.
  6. *
  7. * US Government Users Restricted Rights - Use, duplication or
  8. * disclosure restricted by GSA ADP Schedule Contract with IBM
  9. * Corp.
  10. *
  11. * DISCLAIMER OF WARRANTIES. The following [enclosed] code is
  12. * sample code created by IBM Corporation. This sample code is
  13. * not part of any standard or IBM product and is provided to you
  14. * solely for the purpose of assisting you in the development of
  15. * your applications. The code is provided "AS IS", without
  16. * warranty of any kind. IBM shall not be liable for any damages
  17. * arising out of your use of the sample code, even if they have
  18. * been advised of the possibility of such damages.
  19. *
  20. =================================================================
  21. -->
  22. <request
  23. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  24. xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd"
  25. type="update">
  26. <!--
  27. Sample that clones an existing (concrete) portlet application.
  28. This sample requires the 'DeployPortlet.xml' sample to be executed successfully.
  29. The 'Welcome Portlet' deployed in that sample will be cloned and and the
  30. new application will be activated along with its portlet.
  31. To prove everything worked, a new page will be created containing the
  32. cloned portlet. The page is linked to the 'My Portal' menu in the navigation.
  33. The Welcome Portlet does not have any portlet settings, but normally you
  34. would clone a portlet because you want to have a new version with
  35. different settings.
  36. -->
  37. <portal action="locate">
  38. <!-- The web-app tag is taken from an export of the original portlet.
  39. The url and access-control tags were removed. -->
  40. <web-app action="update" active="true" uid="com.ibm.wps.cp.portlet.tagcloud.webmod">
  41. <servlet action="locate" name="Tag Cloud" objectid="theReferencedServlet" referenceid="portletidviewer"/>
  42. <!-- The name/ uid must be constructed from the original name/ uid appended with ".$cloned."
  43. and appended with some id that makes the string unique. Optional you can set a unique name. -->
  44. <portlet-app action="update" active="true" name="Xml Sample Portlet app.$cloned.1" uid="com.ibm.wps.cp.portlet.tagcloud.$cloned.1"
  45. uniquename="com.ibm.wps.portletapp.xmlsample.$cloned.1">
  46. <!-- The name must be constructed from the original name appended with ".$cloned."
  47. and appended with some id that makes the string unique. Optional you can set a unique name. -->
  48. <portlet action="update" active="true" defaultlocale="en" name="Tag Cloud.$cloned.1" objectid="theClonedPortlet"
  49. servletref="theReferencedServlet" uniquename="com.ibm.wps.portlet.xmlsample.$cloned.1">
  50. <localedata locale="en">
  51. <title>WebSphere Portal Sample Portlet Clone</title>
  52. <description>Sample portlet clone</description>
  53. <keywords>${portlet.keywords}</keywords>
  54. </localedata>
  55. <parameter name="url" type="string" update="set">/WEB-INF/jsp/wps.jsp</parameter>
  56. </portlet>
  57. </portlet-app>
  58. </web-app>
  59. <!-- parent element under which the new page is inserted -->
  60. <content-node action="locate" objectid="parentPage" uniquename="ibm.portal.Home"/>
  61. <content-node action="update" active="true" allportletsallowed="true" content-parentref="parentPage" create-type="explicit" domain="rel" ordinal="last" type="staticpage" uniquename="ibm.portal.ssa.SamplePage.3">
  62. <localedata locale="en">
  63. <title>Sample Portlet (Cloned)</title>
  64. </localedata>
  65. <!-- The content of static page in binary format
  66. attribute markup can be set to one of portal server supported markups
  67. attribute display-option can be set to "inline" or "iframe" or "ajax".-->
  68. <pagecontents markup="html" display-option="inline">
  69. <content>UEsDBBQACAAIALKbTDcAAAAAAAAAAAAAAAALAAAAaW5kZXgxLmh0bWxtUE1rwzAMvQf6H0TuTeh1
  70. ZL7stFsghZ5VW2sEjmxir1n//YTdbDAGOoj3IelpmAmdOTRD5uzJTLhETzBlzGxhxBsNfWVU0u/a
  71. a3APc9AmmvPMCbQQUvVE9QB9lTkdFLpAMyYIQhDDquPyu6heLMGFvA0LwVjxDurcHX7Khz6WhY7v
  72. YD2m9No+maMNkpGF1hYEF/oh3nb81Jr/nRuLC9sf26WAp1bzPPwvfHT0wcKZg7xsMXWx2y88B81w
  73. neJMa02BvizsdWO5uTZNiTV6wkRw58QZPvVtNz2xhFNdfWvzDVBLBwjDeEQR4AAAAJMBAABQSwEC
  74. FAAUAAgACACym0w3w3hEEeAAAACTAQAACwAAAAAAAAAAAAAAAAAAAAAAaW5kZXgxLmh0bWxQSwUG
  75. AAAAAAEAAQA5AAAAGQEAAAAA</content>
  76. </pagecontents>
  77. <parameter name="com.ibm.portal.bookmarkable" type="string" update="set"><![CDATA[Yes]]></parameter>
  78. <parameter name="resourceaggregation.profile" type="string" update="set"><![CDATA[profiles/profile_dojo_lightweight.json]]></parameter>
  79. <parameter name="com.ibm.portal.friendly.name" type="string" update="set"><![CDATA[staticpage2]]></parameter>
  80. <!-- this parameter must match the name of static page -->
  81. <parameter name="com.ibm.portal.static.page.file.name.html" type="string" update="set"><![CDATA[index1.html]]></parameter>
  82. <access-control externalized="false" owner="uid=wpsadmin,o=defaultwimfilebasedrealm" private="false"/>
  83. <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container">
  84. <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container"/>
  85. <component action="update" active="true" domain="rel" ordinal="100" orientation="H" type="container">
  86. <!-- this parameter must match the portlet-container name in the static page -->
  87. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[portletContainer1]]></parameter>
  88. <component action="update" active="true" domain="rel" ordinal="100" type="control">
  89. <!-- this parameter must match the portlet-window name in the static page -->
  90. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[portletWindow1]]></parameter>
  91. <portletinstance action="update" domain="rel" portletref="theClonedPortlet" />
  92. </component>
  93. </component>
  94. </component>
  95. </content-node>
  96. </portal>
  97. </request>