deleteDataset.xts 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. 2014
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. ===============================================================================================
  10. Deletes a dataset object in CM based and in the dataset repository based on parameters passed in.
  11. Actual delete logic is handled by MDSRV using the DeleteLOBDataset specification request.
  12. ===============================================================================================
  13. -->
  14. <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/" xmlns:create="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/" xmlns:cms="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cms/1/">
  15. <xts:block id="doFormCommand" processor="XSLT" type="exec">
  16. <xts:logicsheet path="portal/iFrmCmd/logicsheets/cm-save.xsl"/>
  17. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  18. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  19. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  20. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  21. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  22. xmlns:form="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/"
  23. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  24. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  25. exclude-result-prefixes="xtsext">
  26. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  27. <xsl:template match="/root/command/form:deleteDataset/form:env">
  28. <xts:sequence>
  29. <xts:append>
  30. <xts:transform src="portal/myDatasets/transforms/extract-deleteLOBDatasets-response.xslt" processor="XSLT">
  31. <send:request provider="metadataService">
  32. <md1:runSpecification
  33. xmlns:md1="http://developer.cognos.com/schemas/metadataService/3">
  34. <bus:specification xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  35. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="bus:metadataServiceSpecification">
  36. <bus:value xsi:type="bus:specification">
  37. <xts:transform name="XMLEncode">
  38. <deleteLOBDatasets includePackages="{form:param[@name='includePackages']}">
  39. <xsl:for-each select="form:param[starts-with(@name, 'checkbox_')]">
  40. <storeID><xsl:value-of select="xtsext:urldecode(string(.))"/></storeID>
  41. </xsl:for-each>
  42. </deleteLOBDatasets>
  43. </xts:transform>
  44. </bus:value>
  45. </bus:specification>
  46. <bus:parameterValues xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  47. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  48. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  49. xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[0]" />
  50. <bus:options xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  51. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  52. SOAP-ENC:arrayType="bus:option[]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  53. xsi:type="SOAP-ENC:Array">
  54. <item xsi:type="bus:asynchOptionInt">
  55. <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
  56. <bus:value xsi:type="xsd:int">0</bus:value>
  57. </item>
  58. <item xsi:type="bus:asynchOptionInt">
  59. <bus:name xsi:type="bus:asynchOptionEnum">secondaryWaitThreshold</bus:name>
  60. <bus:value xsi:type="xsd:int">0</bus:value>
  61. </item>
  62. <item xsi:type="bus:runOptionBoolean">
  63. <bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>
  64. <bus:value xsi:type="xsd:boolean">false</bus:value>
  65. </item>
  66. </bus:options>
  67. </md1:runSpecification>
  68. </send:request>
  69. </xts:transform>
  70. </xts:append>
  71. </xts:sequence>
  72. </xsl:template>
  73. </xsl:stylesheet>
  74. </xts:block>
  75. <!-- operation results -->
  76. <xts:block id="commandResults" processor="XSLT" type="exec" mode="output" mimeType="text/xml" dependency="doFormCommand">
  77. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  78. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" version="1.0">
  79. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  80. <xsl:template match="/root">
  81. <response xmlns="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/">
  82. <xsl:choose>
  83. <xsl:when test="cm:deleteDatasetResponse"><xsl:copy-of select="cm:deleteDatasetResponse"/></xsl:when>
  84. <xsl:otherwise><error/></xsl:otherwise>
  85. </xsl:choose>
  86. </response>
  87. </xsl:template>
  88. <xsl:template match="text()"/>
  89. </xsl:stylesheet>
  90. </xts:block>
  91. </xts:morphlet>