removeMultiObjNotification.xts 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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, 2011
  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. <!--
  13. ===============================================================================================
  14. Removes the current user from the notification list of an agent or agent view
  15. ===============================================================================================
  16. -->
  17. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/">
  18. <xts:block id="doFormCommand" processor="XSLT" type="exec">
  19. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  20. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  21. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  22. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  23. xmlns:form="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/"
  24. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  25. xmlns:dls="http://developer.cognos.com/schemas/deliveryService/1"
  26. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  27. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  28. exclude-result-prefixes="xtsext">
  29. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  30. <xsl:template match="/root/command/form:removeMultiObjNotification/form:env">
  31. <xts:sequence>
  32. <xts:append>
  33. <xsl:for-each select="/root/env/*[starts-with(@name, 'checkbox_')]">
  34. <send:request provider="deliveryService">
  35. <dls:deleteNotification>
  36. <objectPath xsi:type="bus:searchPathSingleObject">
  37. <xsl:value-of select="xtsext:urldecode(xtsext:web64decode(string(.),true()))"/>
  38. </objectPath>
  39. </dls:deleteNotification>
  40. </send:request>
  41. </xsl:for-each>
  42. </xts:append>
  43. </xts:sequence>
  44. </xsl:template>
  45. </xsl:stylesheet>
  46. </xts:block>
  47. <!-- operation results -->
  48. <xts:block id="commandResults" processor="XSLT" type="exec" mode="output" mimeType="text/xml" dependency="doFormCommand">
  49. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  50. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:dls="http://developer.cognos.com/schemas/deliveryService/1" version="1.0">
  51. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  52. <xsl:template match="/root">
  53. <response xmlns="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/">
  54. <xsl:choose>
  55. <xsl:when test="dls:deleteNotificationResponse"><xsl:copy-of select="dls:deleteNotificationResponse"/></xsl:when>
  56. <xsl:otherwise><error/></xsl:otherwise>
  57. </xsl:choose>
  58. </response>
  59. </xsl:template>
  60. <xsl:template match="text()"/>
  61. </xsl:stylesheet>
  62. </xts:block>
  63. </xts:morphlet>