new_contentTask_retentionRuleUpdate.xts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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, 2012
  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="canUseContentStoreTool">
  13. <!--
  14. ===============================================================================================
  15. Defines the display actions: there are the following:
  16. ===============================================================================================
  17. -->
  18. <xts:block id="setMorphletActions"
  19. processor="XSLT"
  20. type="exec"
  21. nodelist="env"
  22. mandatory="true"
  23. path="/portal/contenttask/setMorphletActions.xslt">
  24. </xts:block>
  25. <!--
  26. ===============================================================================================
  27. callAddEntriesPage - Calls the addEntries morphlet
  28. ===============================================================================================
  29. -->
  30. <xts:block id="callAddEntriesPage" processor="XSLT" type="exec" nodelist="env,requestParams" dependency="setMorphletActions" condition=".[/root/callAddEntriesPage]" mandatory="false">
  31. <xts:logicsheet path="logicsheets/portal.xsl"/>
  32. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  33. <xsl:stylesheet version="1.0"
  34. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  35. xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
  36. xmlns:req-params="http://developer.cognos.com/schemas/request/params"
  37. exclude-result-prefixes="xsl dlgctrl req-params">
  38. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  39. <xsl:key name="request-param" match="/root/*[local-name()='requestParams']/*[local-name()='param']" use="@name"/>
  40. <xsl:template match="/">
  41. <xts:sequence>
  42. <dlgctrl:XTS2Request>
  43. <dlgctrl:target>/portal/addEntries/add_entries.xts</dlgctrl:target>
  44. <req-params:param name="defaultTarget">/portal/new_contentTask_retentionRuleUpdate.xts</req-params:param>
  45. <req-params:param name="titlePostfix"><xts:string id="IDS_NEW_CONTENT_TASK_RETENTION_RULE_UPDATE_TITLE"/></req-params:param>
  46. <req-params:param name="defaultSearchPath">/</req-params:param>
  47. <req-params:param name="addEntriesUI">packagesAndLocations</req-params:param>
  48. <req-params:param name="allowRootBrowsing">true</req-params:param>
  49. <req-params:param name="allowDuplicates">false</req-params:param>
  50. <req-params:param name="selectableRootObjects">true</req-params:param>
  51. <req-params:param name="returnProperties">
  52. <req-params:property name="hidden"/>
  53. </req-params:param>
  54. </dlgctrl:XTS2Request>
  55. </xts:sequence>
  56. </xsl:template>
  57. </xsl:stylesheet>
  58. </xts:block>
  59. <!--
  60. ===============================================================================================
  61. processAddEntriesResponse - process the addEndtries morphlet response
  62. ===============================================================================================
  63. -->
  64. <xts:block id="processAddEntriesResponse"
  65. path="/portal/addEntries/logicsheets/process_added_entries.xslt"
  66. processor="XSLT" dependency="callAddEntriesPage"
  67. nodelist="output,env,morphletResponse,credential,cookies" type="exec"
  68. condition=".[/root/callAddEntriesPage]" mandatory="false">
  69. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  70. <xts:logicsheet path="logicsheets/portal.xsl"/>
  71. </xts:block>
  72. <!--
  73. ===============================================================================================
  74. Query the default included content: this is invoked only when there is no submitted includedContent parameter
  75. ===============================================================================================
  76. -->
  77. <xts:block id="queryDefaultIncludedContent"
  78. path="/portal/contenttask/initializeIncludedContent.xslt"
  79. processor="XSLT" type="exec"
  80. dependency="processAddEntriesResponse"
  81. condition=".[not(/root/env/param[@name='includedPackagesAndFolders']) and /root/showCurrentPage]"
  82. nodelist="header,env"
  83. mandatory="false">
  84. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  85. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  86. </xts:block>
  87. <!--
  88. ===============================================================================================
  89. Retrieve the included content: either take the default content or grab it from the submitted
  90. includedPackagesAndFolders parameter
  91. ===============================================================================================
  92. -->
  93. <xts:block id="retrieveIncludedPackagesAndFolders"
  94. path="/portal/contenttask/retrieveIncludedContent.xslt"
  95. processor="XSLT" type="exec"
  96. dependency="queryDefaultIncludedContent"
  97. condition="/root/showCurrentPage"
  98. nodelist="env,packageAndFolderSection,newEntries,header,credential,setCookies,cookies"
  99. mandatory="false">
  100. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  101. <xts:logicsheet path="logicsheets/portal.xsl"/>
  102. </xts:block>
  103. <!--
  104. ===============================================================================================
  105. Generate the HTML
  106. ===============================================================================================
  107. -->
  108. <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" mandatory="false" dependency="retrieveIncludedPackagesAndFolders" condition="/root/showCurrentPage">
  109. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  110. <xts:logicsheet path="logicsheets/portal.xsl"/>
  111. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  112. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  113. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  114. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  115. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  116. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  117. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  118. <xsl:stylesheet version="1.0"
  119. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  120. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  121. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  122. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  123. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  124. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  125. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  126. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  127. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  128. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  129. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  130. exclude-result-prefixes="xsl pf df dp lyt xts xtsext utml adm">
  131. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  132. <!-- current file name -->
  133. <xsl:variable name="mname" select="'new_contentTask_retentionRuleUpdate.xts'"/>
  134. <xsl:variable name="has_write_permission" select="true()"/>
  135. <pf:variables/>
  136. <pf:gen-icon/>
  137. <!-- start the output -->
  138. <xsl:template match="/root">
  139. <xsl:variable name="wizard-title"><xts:string id="IDS_NEW_CONTENT_TASK_RETENTION_RULE_UPDATE_TITLE"/></xsl:variable>
  140. <xsl:variable name="browserTitle">
  141. <xts:string id="IDS_CONTENT_TASK_SELECT_TYPE_TITLE">
  142. <xts:param name="wizardName">
  143. <xsl:value-of select="$wizard-title"/>
  144. </xts:param>
  145. </xts:string>
  146. </xsl:variable>
  147. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  148. <dp:meta>
  149. <pf:meta/>
  150. <!-- Standard meta tags -->
  151. </dp:meta>
  152. <dp:script>
  153. <pf:dojo>
  154. <require>com.ibm.cognos.ps.list</require>
  155. <require>com.ibm.cognos.ps.retentionRule</require>
  156. </pf:dojo>
  157. <script language="javascript" src="{$webcontent}/{$app}/js/contentTask.js"/>
  158. <script language="javascript" src="{$webcontent}/{$app}/js/list.js"/>
  159. <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
  160. <script language="JavaScript">
  161. function validate(){
  162. return (new com.ibm.cognos.ps.retentionRule(document.pform)).validate({
  163. IDS_ERR_NON_NEGATIVE: '<xts:string id="IDS_ERR_NON_NEGATIVE" encode="javascript"/>',
  164. IDS_ERR_POSITIVE: '<xts:string id="IDS_ERR_POSITIVE" encode="javascript"/>',
  165. IDS_ERR_NON_INPUT: '<xts:string id="IDS_ERR_NON_INPUT" encode="javascript"/>',
  166. IDS_ERR_INVALID_TASK_TYPE: '<xts:string id="IDS_ERR_INVALID_TASK_TYPE" encode="javascript"/>'
  167. },'retention');
  168. }
  169. </script>
  170. <!-- Help system -->
  171. <pf:help/>
  172. </dp:script>
  173. <utml:form name="pform" method="post" action="{$gateway}">
  174. <utml:input type="hidden" name="ifrmcmd" utml:update="false" value="create"/>
  175. <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
  176. <utml:input type="hidden" name="listop" value="" utml:update="false"/>
  177. <utml:input type="hidden" name="cto_cleanupContent" utml:update="false" value="true"/>
  178. <utml:input type="hidden" name="cto_donotwritetorepository" utml:update="false" value="true"/>
  179. <utml:input type="hidden" name="cto_updateContextObjects" utml:update="false" value="true"/>
  180. <!-- Just use defaults for these values. A means to edit them will be added later -->
  181. <!-- dialog header -->
  182. <dp:header>
  183. <dp:title><xsl:value-of select="$browserTitle"/></dp:title>
  184. <!-- description tabs -->
  185. <dp:description>
  186. <xts:string id="IDS_CONTENT_TASK_DESCRIPTION"/>
  187. </dp:description>
  188. </dp:header>
  189. <adm:packageAndFolderSection/>
  190. <lyt:layout style="2" title="IDS_CONTENT_TASK_RETENTION_SETTINGS" border="yes" intro="IDS_PROP_RETENTION_HINT">
  191. <lyt:section>
  192. <adm:retentionSettings ui='retention' class="history" title="IDS_PROP_RETENTION_EXECUTION" label="IDS_PROP_RETENTION_EXECUTION_LABEL"/>
  193. </lyt:section>
  194. <lyt:section>
  195. <adm:retentionSettings ui='retention' class="reportVersion" title="IDS_PROP_RETENTION_GENERIC_OUTPUTS" label="IDS_PROP_RETENTION_GENERIC_OUTPUTS_LABEL"/>
  196. </lyt:section>
  197. <lyt:section>
  198. <adm:retentionSettings ui='retention' class="documentVersion" title="IDS_PROP_RETENTION_GENERIC_OUTPUTS" label="IDS_PROP_RETENTION_GENERIC_OUTPUTS_LABEL"/>
  199. </lyt:section>
  200. </lyt:layout>
  201. <adm:propRecordingLevel/>
  202. <dp:footer>
  203. <df:button df:id="IDS_CANCEL" df:style="back-url"/>
  204. <df:button df:id="IDS_BACK" df:style="maintain">
  205. <df:target>
  206. <xsl:value-of select="concat($app, '/new_general.xts')"/>
  207. </df:target>
  208. </df:button>
  209. <df:button df:id="IDS_NEXT" df:style="maintain" utml:validate="true">
  210. <df:target>
  211. <xsl:value-of select="concat($app, '/new_select_action.xts')"/>
  212. </df:target>
  213. </df:button>
  214. <df:button df:id="IDS_FINISH"/>
  215. </dp:footer>
  216. </utml:form>
  217. </dp:page>
  218. </xsl:template>
  219. </xsl:stylesheet>
  220. </xts:block>
  221. <!--
  222. =============================================
  223. Output debug dump
  224. =============================================
  225. -->
  226. <xts:block id="debug" type="exec" mode="output" processor="XSLT" condition=".[/root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']" mandatory="false" mimeType="text/html" dependency="format">
  227. <!-- get the debug logic sheet -->
  228. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  229. <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">
  230. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  231. <xsl:template match="/">
  232. <dbg:dumpxml select="/root"/>
  233. </xsl:template>
  234. </xsl:stylesheet>
  235. </xts:block>
  236. </xts:morphlet>