CreateApplicationCategoryByLabel.xml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.5.0.xsd">
  23. <portal action="locate">
  24. <!--
  25. Sample for registering a new application category underneath the application root category.
  26. This variant registers a category by adding a label underneath the application category root label that serves as a container for child pages that hold the portlets that are supposed to become part of the category.
  27. -->
  28. <content-node action="locate" domain="rel" uniquename="wps.content.root"/>
  29. <content-node action="locate" domain="rel" uniquename="ibm.portal.HiddenPages"/>
  30. <content-node action="locate" domain="rel" uniquename="ibm.portal.toolbar.applications.category.label.root"/>
  31. <!-- add the label representing the new category -->
  32. <content-node action="update" active="true" content-parentref="ibm.portal.toolbar.applications.category.label.root" domain="rel" ordinal="300" type="label" uniquename="ibm.portal.toolbar.applications.category.label.sample2">
  33. <supported-markup markup="html" update="set"/>
  34. <localedata locale="en" >
  35. <title>Sample Category 2</title>
  36. </localedata>
  37. <parameter name="com.ibm.portal.IgnoreAccessControlInCaches" type="string" update="set"><![CDATA[false]]></parameter>
  38. <parameter name="com.ibm.portal.navigation.follow_internal_urls" type="string" update="set"><![CDATA[true]]></parameter>
  39. <parameter name="com.ibm.portal.remote-cache-expiry" type="string" update="set"><![CDATA[86400]]></parameter>
  40. <parameter name="com.ibm.portal.remote-cache-scope" type="string" update="set"><![CDATA[NON-SHARED]]></parameter>
  41. <access-control externalized="false" owner="undefined" private="false">
  42. <role actionset="User" update="set">
  43. <mapping subjectid="all authenticated portal users" subjecttype="user_group" update="set"/>
  44. </role>
  45. </access-control>
  46. </content-node>
  47. <!-- add a page that holds a portlet supposed to become part of the new category -->
  48. <content-node action="update" active="true" content-parentref="ibm.portal.toolbar.applications.category.label.sample2" domain="rel" ordinal="300" type="page" uniquename="ibm.portal.toolbar.applications.category.label.sample2.about">
  49. <supported-markup markup="html" update="set"/>
  50. <localedata locale="en" >
  51. <title>About WebSphere Portal</title>
  52. </localedata>
  53. <parameter name="com.ibm.portal.IgnoreAccessControlInCaches" type="string" update="set"><![CDATA[false]]></parameter>
  54. <parameter name="com.ibm.portal.navigation.follow_internal_urls" type="string" update="set"><![CDATA[true]]></parameter>
  55. <parameter name="com.ibm.portal.remote-cache-expiry" type="string" update="set"><![CDATA[86400]]></parameter>
  56. <parameter name="com.ibm.portal.remote-cache-scope" type="string" update="set"><![CDATA[NON-SHARED]]></parameter>
  57. <access-control externalized="false" owner="undefined" private="false">
  58. <role actionset="User" update="set">
  59. <mapping subjectid="all authenticated portal users" subjecttype="user_group" update="set"/>
  60. </role>
  61. </access-control>
  62. <component action="create" ordinal="100" type="container" orientation="H">
  63. <component action="create" ordinal="100" type="control" skinref="undefined">
  64. <!-- portletref must match the objectid attribute of portlet -->
  65. <portletinstance action="update" portletref="wps.p.Welcome"/>
  66. </component>
  67. </component>
  68. </content-node>
  69. </portal>
  70. </request>