view_permissions.xts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2013
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" messageBase="messages/portal.xml, messages/portalRL.xml">
  13. <!--
  14. ===============================================================================================
  15. formlogic_init
  16. Standard form logic initialization
  17. ===============================================================================================
  18. -->
  19. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  20. <!-- Load object-specific property tabs map ============================================================== -->
  21. <xts:block id="getTabs" type="exec" mode="interpret" processor="XML" path="/portal/uiobjects_tabs.xml"/>
  22. <!--
  23. ================================================================================
  24. get_content
  25. Retrieve the object details from Content Manager.
  26. ================================================================================
  27. -->
  28. <xts:block id="get_content" processor="XSLT" type="exec" mode="interpret">
  29. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  30. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  31. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  32. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  33. <xsl:template match="/">
  34. <xts:sequence>
  35. <xts:append>
  36. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  37. <send:request provider="cm">
  38. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  39. <query xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
  40. <search>
  41. <xsl:value-of select="key('env-param','m_obj')"/>
  42. </search>
  43. <properties>
  44. <cm:property name="storeID"/>
  45. </properties>
  46. <options schemaInfo="true"/>
  47. </query>
  48. </xts:transform>
  49. </send:request>
  50. </xts:transform>
  51. </xts:append>
  52. </xts:sequence>
  53. </xsl:template>
  54. </xsl:stylesheet>
  55. </xts:block>
  56. <!--
  57. ================================================================================
  58. render_page
  59. Render the HTML page.
  60. ================================================================================
  61. -->
  62. <xts:block id="render_page" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="get_content formlogic_init">
  63. <!-- portal specific information -->
  64. <xts:logicsheet path="logicsheets/portal.xsl"/>
  65. <!-- get the presentation theme -->
  66. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  67. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  68. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  69. <xts:logicsheet path="logicsheets/presentation/dialog/confirm.xslt"/>
  70. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  71. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  72. <!-- apply the form logic -->
  73. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  74. <xts:logicsheet path="logicsheets/validation.xslt"/>
  75. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  76. <xsl:stylesheet version="1.0"
  77. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  78. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  79. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  80. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  81. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  82. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  83. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  84. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  85. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  86. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  87. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl cm pf df dp dc lyt utml cp cf xtsext">
  88. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  89. <!-- current file name -->
  90. <xsl:variable name="mname" select="'view_permissions.xts'"/>
  91. <!-- add any theme variables -->
  92. <pf:variables/>
  93. <xsl:variable name="object" select="/root/cm:queryResponse/*"/>
  94. <!-- start the output -->
  95. <xsl:template match="/root">
  96. <!-- get passed in parameters -->
  97. <xsl:variable name="browserTitle">
  98. <xts:string id="IDS_USER_PERMISSIONS_TITLE">
  99. <xts:param name="objectName">
  100. <span lang="{$contentLocale}"><xsl:value-of select="xtsext:enforceBTD(/root/env/param[@name='m_name'], $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
  101. </xts:param>
  102. </xts:string>
  103. </xsl:variable>
  104. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  105. <dp:meta>
  106. <!-- Standard meta tags -->
  107. <pf:meta/>
  108. </dp:meta>
  109. <dp:script>
  110. <!-- Help system -->
  111. <pf:help context="HID_PERMISSIONS"/>
  112. </dp:script>
  113. <utml:form name="pform" method="post" action="{$gateway}">
  114. <utml:read-only>true</utml:read-only>
  115. <!-- dialog header -->
  116. <dp:header>
  117. <!-- header titles-->
  118. <dp:title>
  119. <xsl:copy-of select="$browserTitle"/>
  120. </dp:title>
  121. </dp:header>
  122. <xsl:call-template name="create-fragment-UI"></xsl:call-template>
  123. <dp:footer>
  124. <df:button df:id="IDS_CLOSE" df:style="back-url"/>
  125. </dp:footer>
  126. </utml:form>
  127. </dp:page>
  128. </xsl:template>
  129. <xsl:template name="create-fragment-UI">
  130. <xsl:variable name="storeId" select="xtsext:urlencode($object/cm:storeID)"/>
  131. <iframe style="border:none;padding:0;margin:0" frameborder="0" width="100%" height="250" src="{$gateway}/cogadmin/userpermissions?storeid={$storeId}">
  132. <xsl:attribute name="title"><xts:string id="IDS_PAGE_CONTENT"/></xsl:attribute>
  133. </iframe>
  134. </xsl:template>
  135. </xsl:stylesheet>
  136. </xts:block>
  137. <!--
  138. ===============================================================================================
  139. debug - display debug information
  140. ===============================================================================================
  141. -->
  142. <xts:block id="debug" dependency="render_page" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  143. <!-- get the debug logic sheet -->
  144. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  145. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
  146. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  147. <xsl:template match="/">
  148. <dbg:dumpxml select="/root"/>
  149. </xsl:template>
  150. </xsl:stylesheet>
  151. </xts:block>
  152. </xts:morphlet>