removeNotification.xts 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:removeNotification/form:env">
  31. <xts:sequence>
  32. <xts:append>
  33. <send:request provider="deliveryService">
  34. <dls:deleteNotification>
  35. <objectPath xsi:type="bus:searchPathSingleObject">
  36. <xsl:value-of select="form:param[@name = 'm_obj']"/>
  37. </objectPath>
  38. </dls:deleteNotification>
  39. </send:request>
  40. </xts:append>
  41. </xts:sequence>
  42. </xsl:template>
  43. </xsl:stylesheet>
  44. </xts:block>
  45. <!-- operation results -->
  46. <xts:block id="commandResults" processor="XSLT" type="exec" mode="output" mimeType="text/xml" dependency="doFormCommand">
  47. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  48. <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">
  49. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  50. <xsl:template match="/root">
  51. <response xmlns="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/">
  52. <xsl:choose>
  53. <xsl:when test="dls:removeNotificationResponse"><xsl:copy-of select="dls:removeNotificationResponse"/></xsl:when>
  54. <xsl:otherwise><error/></xsl:otherwise>
  55. </xsl:choose>
  56. </response>
  57. </xsl:template>
  58. <xsl:template match="text()"/>
  59. </xsl:stylesheet>
  60. </xts:block>
  61. </xts:morphlet>