Transaction.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. create-oids="true"
  27. transaction-level="request">
  28. <!-- Sample to demonstrate the different transaction levels.
  29. This sample is very similar to CreatePage.xml; the difference is that the portlet
  30. is not deployed (update actions) but only found (locate action), and that there's
  31. a second page being created.
  32. The second page generates an error about the uniquename being used.
  33. With the transaction-level set to "request," none of the pages is being created,
  34. whereas transaction-level="resource" creates the first page.
  35. After running this sample with transaction-level="resource," it can be cleaned up
  36. with the DeletePage.xml sample.
  37. -->
  38. <portal action="locate">
  39. <!-- uid must match the uid attribute of portlet-app in portlet.xml -->
  40. <web-app action="locate" uid="com.ibm.wps.cp.portlet.tagcloud.webmod">
  41. <!-- uid must match uid attribute of concrete-portlet-app in portlet.xml -->
  42. <portlet-app action="locate" uid="com.ibm.wps.cp.portlet.tagcloud">
  43. <!-- name must match the content of portlet-name subtag of concrete-portlet in portlet.xml -->
  44. <portlet action="locate" objectid="theExamplePortlet" name="Tag Cloud">
  45. </portlet>
  46. </portlet-app>
  47. </web-app>
  48. <!-- The parent element under which the new page is inserted. -->
  49. <content-node action="locate" objectid="parentPage" uniquename="ibm.portal.Home"/>
  50. <!-- Note that the preceding elements are needed because the XML request uses ID generating mode
  51. and the new page must refer to the portlet and the parent place, so the object IDs
  52. thePortlet and wps.content.root.My_Portal must be defined.
  53. If you use ID preserving mode and have the correct objectid values for these two resources,
  54. you do not need to locate them. -->
  55. <!-- The new page. contentparentref attribute must match the objectid of parent.
  56. Change the uniquename attribute to create another page. -->
  57. <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.2">
  58. <localedata locale="en" prefix="page.sample">
  59. <url>file:///$server_root$/base/wp.xml/doc/xml-samples/pagetitles_en.properties</url>
  60. </localedata>
  61. <localedata locale="de" prefix="page.sample">
  62. <url>file:///$server_root$/base/wp.xml/doc/xml-samples/pagetitles_de.properties</url>
  63. </localedata>
  64. <!-- The content of static page in binary format
  65. attribute markup can be set to one of portal server supported markups
  66. attribute display-option can be set to "inline" or "iframe" or "ajax".-->
  67. <pagecontents markup="html" display-option="inline">
  68. <content>UEsDBBQACAAIALKbTDcAAAAAAAAAAAAAAAALAAAAaW5kZXgxLmh0bWxtUE1rwzAMvQf6H0TuTeh1
  69. ZL7stFsghZ5VW2sEjmxir1n//YTdbDAGOoj3IelpmAmdOTRD5uzJTLhETzBlzGxhxBsNfWVU0u/a
  70. a3APc9AmmvPMCbQQUvVE9QB9lTkdFLpAMyYIQhDDquPyu6heLMGFvA0LwVjxDurcHX7Khz6WhY7v
  71. YD2m9No+maMNkpGF1hYEF/oh3nb81Jr/nRuLC9sf26WAp1bzPPwvfHT0wcKZg7xsMXWx2y88B81w
  72. neJMa02BvizsdWO5uTZNiTV6wkRw58QZPvVtNz2xhFNdfWvzDVBLBwjDeEQR4AAAAJMBAABQSwEC
  73. FAAUAAgACACym0w3w3hEEeAAAACTAQAACwAAAAAAAAAAAAAAAAAAAAAAaW5kZXgxLmh0bWxQSwUG
  74. AAAAAAEAAQA5AAAAGQEAAAAA</content>
  75. </pagecontents>
  76. <parameter name="com.ibm.portal.bookmarkable" type="string" update="set"><![CDATA[Yes]]></parameter>
  77. <parameter name="resourceaggregation.profile" type="string" update="set"><![CDATA[profiles/profile_dojo_lightweight.json]]></parameter>
  78. <parameter name="com.ibm.portal.friendly.name" type="string" update="set"><![CDATA[staticpage2]]></parameter>
  79. <!-- this parameter must match the name of static page -->
  80. <parameter name="com.ibm.portal.static.page.file.name.html" type="string" update="set"><![CDATA[index1.html]]></parameter>
  81. <access-control externalized="false" owner="uid=wpsadmin,o=defaultwimfilebasedrealm" private="false"/>
  82. <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container">
  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="H" type="container">
  85. <!-- this parameter must match the portlet-container name in the static page -->
  86. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[portletContainer1]]></parameter>
  87. <component action="update" active="true" domain="rel" ordinal="100" type="control">
  88. <!-- this parameter must match the portlet-window name in the static page -->
  89. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[portletWindow1]]></parameter>
  90. <portletinstance action="update" domain="rel" portletref="theExamplePortlet" />
  91. </component>
  92. </component>
  93. </component>
  94. </content-node>
  95. <!-- This is the second page that will generate the error as we set the uniquename to one
  96. that is already defined.
  97. -->
  98. <content-node action="update" uniquename="ibm.portal.ssa.SamplePage.2" ordinal="last" content-parentref="parentPage" active="true" create-type="explicit" type="staticpage">
  99. <supported-markup markup="html" update="set"/>
  100. <localedata locale="en">
  101. <title>Page that should not appear</title>
  102. </localedata>
  103. </content-node>
  104. </portal>
  105. </request>