sample-map.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0"?>
  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. Sample Configuration file for the IBM Cognos Onebox provider.
  14. Rename to map.xml and modify as necessary.
  15. -->
  16. <onebox>
  17. <!--
  18. Multiple modules are permitted. The oneboxName attribute should correspond to the name
  19. given in the module configuration of the Google Search Appliance
  20. -->
  21. <module oneboxName="test">
  22. <!--
  23. Map entries allow you to map a particular regular expression (regex) to a particular
  24. piece of content. The content can be either an object stored in Content Manager, or
  25. a particular Metric from a Metrics Package.
  26. -->
  27. <mapEntries>
  28. <!--
  29. Multiple entries are supported. The regular expressions will be evaluated in the
  30. order in which they appear in this file. Once one match is found, that entry will
  31. be used, so order is important.
  32. The 'provider' attribute must be one of:
  33. cm : the entry identifies an object in Content Manager
  34. mm : the entry identifies a Metrics object
  35. -->
  36. <mapEntry provider="cm">
  37. <!--
  38. The regular expression.
  39. -->
  40. <regex>top.*perform.*</regex>
  41. <!--
  42. Multiple path elements are supported for each mapEntry. This is useful if you
  43. want to display both a chart and a list or crosstab in the Onebox response. The
  44. value of this element must be a valid searchPath in Content Manager. The objects
  45. that are identified are asssumed to have saved output in XHTML format.
  46. The 'type' attribute must be one of:
  47. output : the object is a non-graphic report (list or cross tab).
  48. image : the object is a report containing a chart
  49. -->
  50. <path type="output">/content/package[@name='Onebox Reports']/query[@name='Top Performers']</path>
  51. </mapEntry>
  52. <mapEntry provider="mm">
  53. <regex>.*inventory</regex>
  54. <!--
  55. For mapEntry elements with provider='mm', the path element should hold the name
  56. of package that the metric is associated with.
  57. -->
  58. <path>Metrics Package</path>
  59. </mapEntry>
  60. </mapEntries>
  61. </module>
  62. </onebox>