tools_service_config.xts 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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, 2014
  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/" messageBase="messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseServerAdministrationTool">
  13. <!--
  14. ===============================================================================================
  15. If external backURLs are not allowed then verify the backURL is in the crn domain and replace it if it isn't
  16. ===============================================================================================
  17. -->
  18. <xts:block id="secureBackURL" path="portal/secureBackURL.xml" processor="XSLT" type="exec" condition=".[/root/system/param[@name = 'allowExternalURLs'] = 'false']" mandatory="false"/>
  19. <!--
  20. ===============================================================================================
  21. Saves cut/copied entries in a user session - Only executes after a cut or a copy operation.
  22. ===============================================================================================
  23. -->
  24. <xts:block id="groupEdit" path="portal/set_clipboard.xml" processor="XSLT" type="exec" mandatory="false" condition=".[/root/env/param[@name='editentries']]">
  25. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  26. <xts:logicsheet path="logicsheets/portal.xsl"/>
  27. </xts:block>
  28. <!-- ======================================================== -->
  29. <!-- Session Management -->
  30. <!-- ======================================================== -->
  31. <!-- Reads session-sensitive info from CM -->
  32. <xts:block processor="XSLT" type="exec" mandatory="false"
  33. id="refreshSession"
  34. path="portal/cc/read_session.xml"
  35. condition=".[
  36. string(/root/cookies/cookie[@name = 'cc_session']) = ''
  37. or /root/env/param[@name='m_reload']
  38. or /root/env/param[@name='m_root'] ]">
  39. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  40. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  41. </xts:block>
  42. <!-- Update the <session> element for this request. -->
  43. <xts:block id="buildSession" path="portal/session.xml" dependency="refreshSession secureBackURL" processor="XSLT" type="exec"
  44. condition=".[
  45. /root/newSession
  46. or /root/env/param[@name='ui']
  47. or /root/env/param[@name='d']
  48. or /root/env/param[starts-with(@name,'m_s_')]
  49. or /root/env/param[@name = 'resetSort'] ]"
  50. mandatory="false"/>
  51. <!-- Save changes to the state info in a cookie -->
  52. <xts:block mode="interpret" processor="XSLT" type="exec"
  53. id="setSession"
  54. path="portal/set_session.xml"
  55. dependency="buildSession groupEdit getContent"
  56. condition=".[/root/updateSession]"
  57. mandatory="false"/>
  58. <!--
  59. ======================================
  60. Generate the search expression
  61. ======================================
  62. -->
  63. <xts:block id="generateSearchExp" processor="XSLT" type="exec" dependency="buildSession" condition=".[/root/env/param[@name='search']]" mandatory="false">
  64. <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
  65. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  66. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  67. xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/"
  68. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  69. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  70. exclude-result-prefixes="search cml xtsext">
  71. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  72. <cml:object-predicates/>
  73. <xsl:template match="root">
  74. <xsl:variable name="path">
  75. <xsl:choose>
  76. <xsl:when test="/root/env/param[@name = 'm_path'] and /root/env/param[@name = 'm_path'] != ''">
  77. <xsl:value-of select="/root/env/param[@name = 'm_path']"/>
  78. </xsl:when>
  79. <xsl:otherwise>/configuration</xsl:otherwise>
  80. </xsl:choose>
  81. </xsl:variable>
  82. <xts:sequence>
  83. <search:gen-search-exp defaultRoot="configuration">
  84. <search:defaultTypes>
  85. <search:defaultType>configurationFolder</search:defaultType>
  86. <search:defaultType>dispatcher</search:defaultType>
  87. <search:defaultType>service</search:defaultType>
  88. </search:defaultTypes>
  89. </search:gen-search-exp>
  90. </xts:sequence>
  91. </xsl:template>
  92. </xsl:stylesheet>
  93. </xts:block>
  94. <!--
  95. ===============================================================================================
  96. Main Content Request
  97. ===============================================================================================
  98. -->
  99. <xts:block id="getContent" processor="XSLT" type="exec" dependency="generateSearchExp">
  100. <xts:logicsheet path="logicsheets/tenantlogic.xsl"/>
  101. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  102. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  103. <xts:logicsheet path="logicsheets/portal.xsl"/>
  104. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  105. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  106. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  107. xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
  108. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  109. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  110. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  111. exclude-result-prefixes="xsl send cm bus pf cml xtsext">
  112. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes"/>
  113. <pf:variables/>
  114. <cml:object-predicates/>
  115. <xsl:template match="root">
  116. <xsl:variable name="m_sort" select="/root/session/param[@name='s_conf']"/>
  117. <xsl:variable name="m_path" select="/root/env/param[@name = 'm_path']"/>
  118. <xsl:variable name="path">
  119. <xsl:choose>
  120. <xsl:when test="$m_path != ''">
  121. <xsl:value-of select="$m_path"/>
  122. </xsl:when>
  123. <xsl:otherwise>
  124. <xsl:value-of select="'/configuration'"/>
  125. </xsl:otherwise>
  126. </xsl:choose>
  127. </xsl:variable>
  128. <xsl:variable name="class_filter">
  129. <xsl:text>[@objectClass="dispatcher" or @objectClass="configurationFolder" or </xsl:text>
  130. <xsl:for-each select="/root/system/param[@name='ui_objects']/object[@service='T'][position()!=last()]">
  131. <xsl:value-of select="concat('@objectClass=&quot;', @class, '&quot; or ')"/>
  132. </xsl:for-each>
  133. <xsl:text>@objectClass="</xsl:text>
  134. <xsl:value-of select="/root/system/param[@name='ui_objects']/object[@service='T'][position()=last()]/@class"/>
  135. <xsl:text>"]</xsl:text>
  136. </xsl:variable>
  137. <xts:sequence>
  138. <xts:append>
  139. <path>
  140. <sort>
  141. <xsl:value-of select="$m_sort"/>
  142. </sort>
  143. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  144. <send:request provider="cm">
  145. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  146. <cm:query>
  147. <cm:search>
  148. <xsl:value-of select="$path"/>
  149. </cm:search>
  150. <cm:properties>
  151. <cm:property name="defaultName"/>
  152. <cm:property name="ancestors"/>
  153. <cm:property name="permissions"/>
  154. <cm:property name="searchPath"/>
  155. <cm:property name="storeID"/>
  156. </cm:properties>
  157. </cm:query>
  158. </xts:transform>
  159. </send:request>
  160. </xts:transform>
  161. </path>
  162. </xts:append>
  163. <xts:append>
  164. <configDefaultName>
  165. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  166. <send:request provider="cm">
  167. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  168. <cm:query>
  169. <cm:search>/configuration[permission('read')]</cm:search>
  170. <cm:properties>
  171. <cm:property name="defaultName"/>
  172. <cm:property name="searchPath"/>
  173. <cm:property name="objectClass"/>
  174. <cm:property name="permissions"/>
  175. <cm:property name="tenantID"/>
  176. </cm:properties>
  177. </cm:query>
  178. </xts:transform>
  179. </send:request>
  180. </xts:transform>
  181. </configDefaultName>
  182. </xts:append>
  183. <!-- Don't need to query CM if we are in search dialog without running a search query. -->
  184. <xsl:if test="/root/search/expression or not(/root/search)">
  185. <xts:append>
  186. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  187. <send:request provider="cm">
  188. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  189. <cm:query>
  190. <cm:search>
  191. <xsl:choose>
  192. <xsl:when test="/root/search/expression">
  193. <xsl:value-of select="/root/search/expression"/>
  194. </xsl:when>
  195. <xsl:otherwise>
  196. <xsl:value-of select="$path"/>/*<xsl:value-of select="concat($class_filter, $visibility-predicate)"/>
  197. </xsl:otherwise>
  198. </xsl:choose>
  199. </cm:search>
  200. <cm:properties>
  201. <cml:prop-base/>
  202. <cm:property name="objectClass"/>
  203. <cm:property name="hasChildren"/>
  204. <cm:property name="startAsActive"/>
  205. <cm:property name="runningState"/>
  206. <!-- If we are doing search then request ancestors too -->
  207. <xsl:if test="/root/search/expression">
  208. <cm:property name="ancestors"/>
  209. </xsl:if>
  210. <cm:property name="permissions"/>
  211. </cm:properties>
  212. <cm:sortBy>
  213. <cm:sort name="usage" order="ascending"/>
  214. <xsl:choose>
  215. <xsl:when test="$m_sort = 'da'">
  216. <cm:sort name="modificationTime" order="ascending"/>
  217. </xsl:when>
  218. <xsl:when test="$m_sort = 'dd'">
  219. <cm:sort name="modificationTime" order="descending"/>
  220. </xsl:when>
  221. <xsl:when test="$m_sort = 'nd'">
  222. <cm:sort name="defaultName" order="descending"/>
  223. </xsl:when>
  224. <xsl:otherwise>
  225. <cm:sort name="defaultName" order="ascending"/>
  226. </xsl:otherwise>
  227. </xsl:choose>
  228. </cm:sortBy>
  229. </cm:query>
  230. </xts:transform>
  231. </send:request>
  232. </xts:transform>
  233. </xts:append>
  234. </xsl:if>
  235. </xts:sequence>
  236. <xts:sequence>
  237. <xts:delete select="/root/env/param[@name='pagerto']"/>
  238. <xts:delete select="/root/env/param[@name='pagerfrom']"/>
  239. <xts:delete select="/root/env/param[@name='pagerto_d']"/>
  240. <xts:delete select="/root/env/param[@name='pagerfrom_d']"/>
  241. <xts:delete select="/root/env/param[@name='m_path']"/>
  242. <xts:append select="/root/env">
  243. <param name="m_path">
  244. <xsl:value-of select="$path"/>
  245. </param>
  246. </xts:append>
  247. </xts:sequence>
  248. </xsl:template>
  249. </xsl:stylesheet>
  250. </xts:block>
  251. <!-- Merge the tenantNames into the response -->
  252. <xts:block processor="XSLT" type="exec" mandatory="false"
  253. path="/portal/tenancy/mergeTenantNames.xslt"
  254. id="mergeTenantNames"
  255. dependency="getContent"
  256. condition=".[/root/session/param[@name='e_showTenantInfo']='true']">
  257. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  258. </xts:block>
  259. <!--
  260. ===============================================================================================
  261. Load class names map
  262. ===============================================================================================
  263. -->
  264. <xts:block id="getClassNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
  265. <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
  266. </xts:block>
  267. <!--
  268. ===============================================================================================
  269. Render the page in HTML
  270. ===============================================================================================
  271. -->
  272. <xts:block id="final" dependency="mergeTenantNames getClassNames" mode="output" processor="XSLT" type="exec" mimeType="text/html">
  273. <xts:logicsheet path="logicsheets/toollogic.xslt"/>
  274. <!-- Cognos Central main behaviour logic -->
  275. <xts:logicsheet path="logicsheets/portal.xsl"/>
  276. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  277. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  278. <xts:logicsheet path="logicsheets/presentation/main/search.xsl"/>
  279. <!-- Cognos Central controls logic -->
  280. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  281. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  282. <!-- Generic logicsheets -->
  283. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  284. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  285. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  286. <xts:logicsheet path="logicsheets/validation.xslt"/>
  287. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  288. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:smt="http://developer.cognos.com/schemas/xts/admin/iServerManagement/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="tool cm mt lyt dp cf cp smt xtsext">
  289. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  290. <!-- current file name -->
  291. <xsl:variable name="mname" select="'legacy_tools/tools_service_config.xts'"/>
  292. <cp:flyoutControl/>
  293. <!-- start the output -->
  294. <xsl:template match="/root">
  295. <xsl:variable name="tab"><xts:string id="IDS_SERVICE_CONFIG"/></xsl:variable>
  296. <xsl:variable name="toolName"><xts:string id="IDS_TOOLS_SERVER_ADMINISTRATION"/></xsl:variable>
  297. <xsl:variable name="userCanNotTraverse" select="not(contains(/root/path/cm:queryResponse/*/cm:permissions, 'traverse'))"/>
  298. <xsl:variable name="userCanNotWrite" select="not(contains(/root/path/cm:queryResponse/*/cm:permissions, 'write'))"/>
  299. <tool:page formName="frmEntryAdmin" stateParams="m_path m_section m_pagerfrom m_pagerto" helpid="HID_SERVERS_CONFIGURE" hideHeaders="true">
  300. <tool:name>
  301. <xts:string id="IDS_TOOLS_TITLE">
  302. <xts:param name="toolTab"><xsl:value-of select="$tab"/></xts:param>
  303. <xts:param name="toolName"><xsl:value-of select="$toolName"/></xts:param>
  304. </xts:string>
  305. </tool:name>
  306. <tool:title><xsl:value-of select="$toolName"/></tool:title>
  307. <tool:search toolBar="true" type="config">
  308. <mt:stypes>
  309. <mt:stype name="dispatcher">
  310. <xts:string id="IDS_OBJ_DISPATCHER"/>
  311. </mt:stype>
  312. <mt:stype name="configurationFolder">
  313. <xts:string id="IDS_OBJ_CONFIGURATIONFOLDER"/>
  314. </mt:stype>
  315. <mt:stype name="service">
  316. <xts:string id="IDS_SERVICE"/>
  317. </mt:stype>
  318. </mt:stypes>
  319. <mt:scopes>
  320. <mt:scope>fb</mt:scope>
  321. <mt:scope>fo</mt:scope>
  322. <mt:scope>any</mt:scope>
  323. </mt:scopes>
  324. <mt:close-params>
  325. <param>backURL</param>
  326. <param>tool_tab</param>
  327. <param>m_path</param>
  328. <param>m_section</param>
  329. </mt:close-params>
  330. </tool:search>
  331. <tool:pathSearch>
  332. <cf:do-the-path-link>
  333. <cf:param name="familytree">/root/path/cm:queryResponse/child::node()/cm:ancestors</cf:param>
  334. <cf:param name="familymember">/root/path/cm:queryResponse/child::node()/cm:defaultName</cf:param>
  335. <cf:param name="lastIsLink">true</cf:param>
  336. <cf:param name="anchorpath">
  337. <xsl:choose>
  338. <xsl:when test="cm:title">
  339. <a>
  340. <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&amp;m=<xsl:value-of select="key('env-param','m')"/>&amp;m_path=<xsl:value-of select="xtsext:protect(xtsext:urlencode(cm:searchPath),'url','searchPath','getdata')"/><xsl:text>&amp;tool_tab=c</xsl:text><xsl:if test="key('env-param', 'backURL')"><xsl:text>&amp;backURL=</xsl:text><xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key( 'env-param', 'backURL' ) ) ),'url','url','getdata')"/></xsl:if></xsl:attribute>
  341. <xsl:value-of select="cm:title"/>
  342. </a>
  343. </xsl:when>
  344. <xsl:otherwise>
  345. <a>
  346. <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&amp;m=<xsl:value-of select="key('env-param','m')"/>&amp;m_path=<xsl:value-of select="xtsext:protect(xtsext:urlencode(/root/path/cm:queryResponse/child::node()/cm:searchPath),'url','searchPath','getdata')"/><xsl:text>&amp;tool_tab=c</xsl:text><xsl:if test="key('env-param', 'backURL')"><xsl:text>&amp;backURL=</xsl:text><xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key( 'env-param', 'backURL' ) ) ),'url','url','getdata')"/></xsl:if></xsl:attribute>
  347. <xsl:value-of select="/root/path/cm:queryResponse/child::node()/cm:defaultName"/>
  348. </a>
  349. </xsl:otherwise>
  350. </xsl:choose>
  351. </cf:param>
  352. </cf:do-the-path-link>
  353. </tool:pathSearch>
  354. <tool:path>
  355. <cf:do-the-path-link>
  356. <cf:param name="familytree">/root/path/cm:queryResponse/child::node()/cm:ancestors</cf:param>
  357. <cf:param name="familymember">/root/path/cm:queryResponse/child::node()/cm:defaultName</cf:param>
  358. <cf:param name="anchorpath">
  359. <a>
  360. <xsl:attribute name="href"><xsl:value-of select="concat($gateway, '?b_action=xts.run')"/><xsl:value-of select="concat('&amp;m=', key('env-param', 'm'))"/><xsl:value-of select="concat('&amp;m_path=', xtsext:protect(xtsext:urlencode(string(cm:searchPath)),'url','searchPath','getdata'))"/><xsl:value-of select="concat('&amp;tool_tab=', $tool-tab)"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&amp;backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if></xsl:attribute>
  361. <xsl:value-of select="cm:title"/>
  362. </a>
  363. </cf:param>
  364. </cf:do-the-path-link>
  365. </tool:path>
  366. <tool:tabs tabset-name="server">c</tool:tabs>
  367. <tool:actions>
  368. <mt:toolbar cogadmin="true">
  369. <xsl:if test="$m_class='configuration' or $m_class='configurationFolder'">
  370. <mt:tool-group cogadmin="true">
  371. <xsl:choose>
  372. <xsl:when test="$userCanNotTraverse or $userCanNotWrite">
  373. <mt:tool cogadmin="true" name="new" disable="true" new-class="configurationFolder"/>
  374. </xsl:when>
  375. <xsl:otherwise>
  376. <mt:tool cogadmin="true" name="new" new-class="configurationFolder"/>
  377. </xsl:otherwise>
  378. </xsl:choose>
  379. </mt:tool-group>
  380. </xsl:if>
  381. <xsl:if test="$m_class != 'dispatcher'">
  382. <mt:tool-group cogadmin="true">
  383. <mt:tool cogadmin="true" name="cut"/>
  384. <mt:tool cogadmin="true" name="paste" type="config" mode="tools"/>
  385. <mt:tool cogadmin="true" name="delete" type="config" mode="tools"/>
  386. </mt:tool-group>
  387. </xsl:if>
  388. <mt:tool-group cogadmin="true" lastgroup="true">
  389. <mt:tool cogadmin="true" name="parent_properties">
  390. <tool-name>configuration_properties</tool-name>
  391. <request-path>/root/path/cm:queryResponse/*</request-path>
  392. </mt:tool>
  393. <xsl:if test="not($userCanNotWrite)">
  394. <mt:tool cogadmin="true" name="refresh_connections">
  395. <request-path>/root/path/cm:queryResponse/*</request-path>
  396. </mt:tool>
  397. </xsl:if>
  398. <xsl:if test="/root/path/cm:queryResponse/*/cm:searchPath = '/configuration'">
  399. <xsl:if test="$isAdminUser">
  400. <mt:tool cogadmin="true" name="routingRules"/>
  401. </xsl:if>
  402. <mt:tool cogadmin="true" name="file_system_locations"/>
  403. <mt:tool cogadmin="true" name="page_sizes"/>
  404. </xsl:if>
  405. <xsl:choose>
  406. <xsl:when test="$userCanNotTraverse">
  407. <mt:tool cogadmin="true" name="search" disable="true"/>
  408. </xsl:when>
  409. <xsl:otherwise>
  410. <mt:tool cogadmin="true" name="search"/>
  411. </xsl:otherwise>
  412. </xsl:choose>
  413. </mt:tool-group>
  414. </mt:toolbar>
  415. </tool:actions>
  416. <xsl:if test="$userCanNotTraverse">
  417. <mt:objectNoneFound id="IDS_NO_TRAVERSE_CONTAINER"/>
  418. </xsl:if>
  419. <xsl:if test="not($userCanNotTraverse)">
  420. <tool:contents>
  421. <tool:browser type="config">
  422. <tool:containers>dispatcher configurationFolder</tool:containers>
  423. <tool:selectables><xsl:if test="not(/root/search/expression)">dispatcher</xsl:if> configurationFolder</tool:selectables>
  424. <tool:columnHeaders session-name="s_conf">
  425. <cp:columnHeader width="20"/>
  426. <cp:columnHeader width="100%" sort="n">
  427. <cp:sortHref>
  428. <xsl:value-of select="$back-url"/>&amp;m_s_conf=<xsl:text/>
  429. <xsl:choose>
  430. <xsl:when test="key('session-param', 's_conf') = 'na' ">nd</xsl:when>
  431. <xsl:when test="key('session-param', 's_conf') = 'nd' "/>
  432. <xsl:otherwise>na</xsl:otherwise>
  433. </xsl:choose>
  434. <xsl:text>&amp;tool_tab=c</xsl:text>
  435. </cp:sortHref>
  436. <xts:string id="IDS_NAME"/>
  437. </cp:columnHeader>
  438. <cp:columnHeader sort="d">
  439. <cp:sortHref>
  440. <xsl:value-of select="$back-url"/>&amp;m_s_conf=<xsl:text/>
  441. <xsl:choose>
  442. <xsl:when test="key('session-param', 's_conf') = 'da' ">dd</xsl:when>
  443. <xsl:when test="key('session-param', 's_conf') = 'dd' "/>
  444. <xsl:otherwise>da</xsl:otherwise>
  445. </xsl:choose>
  446. <xsl:text>&amp;tool_tab=c</xsl:text>
  447. </cp:sortHref>
  448. <xts:string id="IDS_MODIFIED"/>
  449. </cp:columnHeader>
  450. </tool:columnHeaders>
  451. <tool:columnContents>
  452. <cp:columnContent scope="row">
  453. <xsl:choose>
  454. <xsl:when test="$m_class != 'dispatcher'">
  455. <xsl:choose>
  456. <xsl:when test="contains(concat(' ', cm:permissions, ' '), ' traverse ')">
  457. <a>
  458. <xsl:attribute name="href"><xsl:call-template name="gen-url"/><xsl:text>&amp;tool_tab=c</xsl:text></xsl:attribute>
  459. <xsl:value-of select="cm:defaultName"/>
  460. </a>
  461. </xsl:when>
  462. <xsl:otherwise>
  463. <xsl:attribute name="href"><xsl:call-template name="gen-url"/><xsl:text>&amp;tool_tab=c</xsl:text></xsl:attribute>
  464. <xsl:value-of select="cm:defaultName"/>
  465. </xsl:otherwise>
  466. </xsl:choose>
  467. </xsl:when>
  468. <xsl:otherwise>
  469. <xsl:value-of select="cm:defaultName"/>
  470. </xsl:otherwise>
  471. </xsl:choose>
  472. <!-- Render the disabled icon if this entry is disabled -->
  473. <xsl:if test="cm:disabled = 'true'">
  474. <img height="16" width="16" hspace="4" align="absmiddle" src="{$image_root}state_disabled.gif">
  475. <xsl:attribute name="alt"><xts:string id="IDS_DISABLED"/></xsl:attribute>
  476. </img>
  477. </xsl:if>
  478. <xsl:text>&#160;&#160;</xsl:text>
  479. </cp:columnContent>
  480. <cp:columnContent>
  481. <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  482. <xsl:text>&#160;&#160;</xsl:text>
  483. </cp:columnContent>
  484. </tool:columnContents>
  485. <tool:columnFooters session-name="s_dir">
  486. <cp:columnFooter width="100%" colspan="11" timezone="string(/root/user/param[@name='timeZoneID'])">
  487. <!-- display the current timestamp -->
  488. <xsl:variable name="time_now" select="xtsext:getCurrentDateTime(string(/root/user/param[@name='timeZoneID']))"/>
  489. <xts:string id="IDS_LAST_UPDATED">
  490. <xts:param name="time">
  491. <xsl:value-of select="xtsext:formatDateFromUTC(string($time_now), number('2'), number('3'), '', string($contentLocale))"/>
  492. </xts:param>
  493. </xts:string>
  494. </cp:columnFooter>
  495. </tool:columnFooters>
  496. <tool:row-actions>
  497. <tool:action name="supportPropertiesAction"/>
  498. <tool:action name="supportAllActionsAction"/>
  499. </tool:row-actions>
  500. </tool:browser>
  501. </tool:contents>
  502. </xsl:if>
  503. <!-- for action "stop immediatelyl" -->
  504. <input type="hidden" name="m_smt_imm" value=""/>
  505. <!-- for the refresh connections action -->
  506. <input type="hidden" name="parentSearchPath" value=""/>
  507. </tool:page>
  508. </xsl:template>
  509. <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
  510. <xsl:template match="text()"/>
  511. <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
  512. <cp:tabControl/>
  513. </xsl:stylesheet>
  514. </xts:block>
  515. <!--
  516. ===============================================================================================
  517. debug - display debug information
  518. ===============================================================================================
  519. -->
  520. <xts:block id="debug" dependency="final" condition=".[/root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  521. <!-- get the debug logic sheet -->
  522. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  523. <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">
  524. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  525. <xsl:template match="/">
  526. <dbg:dumpxml select="/root"/>
  527. </xsl:template>
  528. </xsl:stylesheet>
  529. </xts:block>
  530. </xts:morphlet>