JavaSamples.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <HTML>
  2. <HEAD>
  3. <!--
  4. Licensed Materials - Property of IBM
  5. IBM Cognos Products: DOCS
  6. (C) Copyright IBM Corp. 2005, 2010
  7. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
  8. IBM Corp.
  9. -->
  10. <TITLE>IBM Cognos Software Development Kit Java Samples</TITLE>
  11. <link rel="STYLESHEET" type="text/css" href="../../webcontent/samples/samplesFonts.css">
  12. </HEAD>
  13. <BODY>
  14. <p class="headerTitle"><img src="../../webcontent/samples/sdk/asp/images/go_logo_small.gif">&nbsp;IBM Cognos Sample Programs</p>
  15. <p class="FormLabel">List of Java Sample Programs for IBM Cognos</p>
  16. <p class="formText">The sample files are installed in subdirectories under the <em>installation_location</em>/sdk/java directory.
  17. Each sample is in its own subdirectory. These subdirectories are
  18. as follows:</p>
  19. <br>
  20. <p class="FormLabel">Agents</p>
  21. <p class="formText">This sample creates and runs an agent. The explanation file is <a href="Agents/Java_CreateAgentUI_Explain.html">Agents/Java_CreateAgentUI_Explain.html</a>.</p>
  22. <p class="FormLabel">Alerts</p>
  23. <p class="formText">This sample demonstrates
  24. how to manage alert lists for reports. The explanation file is <a href="Alerts/Java_AlertslUI_Explain.html">Alerts/Java_AlertslUI_Explain.html</a>.</p>
  25. <p class="FormLabel">CancelExec</p>
  26. <p class="formText">This sample cancels a running report. The explanation file is <a href="CancelExec/Java_CancelUI_Explain.html">CancelExec/LOCATCancelExec/Java_CancelUI_Explain.htmlION</a>.</p>
  27. <p class="FormLabel">CapabilitiesGUI</p>
  28. <p class="formText">This sample adds the canUseReportStudio
  29. capability to the selected account or role for the selected package. The explanation file is <a href="CapabilitiesGUI/Java_CapabilitiesGUI_Explain.html">CapabilitiesGUI/Java_CapabilitiesGUI_Explain.html</a>.</p>
  30. <p class="formText">This
  31. directory contains the user interface for the Capabilities sample.
  32. The methods used by this sample are in the Security directory.</p>
  33. <p class="FormLabel">Common</p>
  34. <p class="formText">This directory contains functionality that
  35. is used by a number of the Java samples. CRNConnect.java is used
  36. to establish a connection to the server. ReportWizardDialog.java
  37. provides a user interface for selecting columns for a report.</p>
  38. <p class="FormLabel">ContentStoreExplorer</p>
  39. <p class="formText">This sample displays all
  40. the objects in the content store. The explanation file is <a href="ContentStoreExplorer/Java_CSExplorer_Explain.html">ContentStoreExplorer/Java_CSExplorer_Explain.html</a>.</p>
  41. <p class="FormLabel">CreateDrillThrough</p>
  42. <p class="formText">This sample creates a drill-through
  43. definition and sets its properties. The explanation file is <a href="CreateDrillThrough/Java_DrillThroughUI_Explain.html">CreateDrillThrough/Java_DrillThroughUI_Explain.html</a>.</p>
  44. <p class="FormLabel">DeployPackage</p>
  45. <p class="formText">This sample demonstrates how to
  46. specify values for the options that control Content Manager deployments. The explanation file is <a href="DeployPackage/Java_DeploymentUI_Explain.html">DeployPackage/Java_DeploymentUI_Explain.html</a>.</p>
  47. <p class="FormLabel">DispatcherControl</p>
  48. <p class="formText">This sample displays dispatcher
  49. properties, starts and stops individual services, and sets dispatcher
  50. settings. The explanation file is <a href="DispatcherControl/Java_DispatcherUI_Explain.html">DispatcherControl/Java_DispatcherUI_Explain.html</a>.</p>
  51. <p class="FormLabel">EventTrigger</p>
  52. <p class="formText">This sample notifies the IBM Cognos
  53. 8 server that an external event has occurred, for the purpose of
  54. triggering trigger-based schedules.</p>
  55. <p class="formText">To use trigger-based
  56. report scheduling, the user must schedule a report based on the trigger
  57. and you must set up the event on a server. Using this sample, you
  58. can link the occurrence of an external event, such as a database
  59. refresh or an email, with a trigger on the report that
  60. causes it to run.</p>
  61. <p class="FormLabel">ExecReports</p>
  62. <p class="formText">This sample contains methods for executing
  63. different types of reports. The explanation file is <a href="ExecReports/Java_ExecReportsUI_Explain.html">ExecReports/Java_ExecReportsUI_Explain.html</a>.</p>
  64. <p class="FormLabel">ExecReportsAt</p>
  65. <p class="formText">This sample submits a report as
  66. a job. When the report executes, the output is saved in the content
  67. store as a report view, which is named after and located with the
  68. report. The explanation file is <a href="ExecReportsAt/Java_ExecReportsAtUI_Explain.html">ExecReportsAt/Java_ExecReportsAtUI_Explain.html</a>.</p>
  69. <p class="FormLabel">GroupsAndRolesGUI</p>
  70. <p class="formText">This sample allows you to manipulate
  71. groups and roles within your secured namespace. You can add users
  72. to and delete users from groups and roles, and you can add and delete groups
  73. and roles within your namespace. The explanation file is <a href="GroupsAndRolesGUI/Java_GroupsAndRolesGUI_Explain.html">GroupsAndRolesGUI/Java_GroupsAndRolesGUI_Explain.html</a>.</p>
  74. <p class="formText">This directory contains
  75. the user interface for the GroupsAndRoles sample. The methods used
  76. by this sample are in the Security directory.</p>
  77. <p class="FormLabel">HandlersCS</p>
  78. <p class="formText">This directory contains methods that
  79. access the content store. Java methods in this directory are used
  80. by a number of the Java samples to query, add, move and delete content within
  81. Content Manager, and to handle exceptions.</p>
  82. <p class="FormLabel">PermissionsGUI</p>
  83. <p class="formText">This sample denies the current
  84. user read permission to that user's MyFolders folder. The explanation file is <a href="PermissionsGUI/Java_PermissionsGUI_Explain.html">PermissionsGUI/Java_PermissionsGUI_Explain.html</a>.</p>
  85. <p class="formText">This
  86. directory contains the user interface for the Permissions sample.
  87. The methods used by this sample are in the Security directory.</p>
  88. <p class="FormLabel">PrintReport</p>
  89. <p class="formText">This sample prints a report that you
  90. specify. You can also add entries to the list of printers, or remove
  91. existing ones from it. The explanation file is <a href="PrintReport/Java_PrintUI_Explain.html">PrintReport/Java_PrintUI_Explain.html</a>.</p>
  92. <p class="formText">For information about setting
  93. up to use network printers on a Windows installation,
  94. see the <em>Administration and Security Guide</em>.</p>
  95. <p class="FormLabel">QueryCM</p>
  96. <p class="formText">This sample gets the objects from the
  97. content store in the location specified by the search option. The
  98. application file contains comments to help you follow the sequence. The explanation file is <a href="QueryCM/Java_cmQueryUI_Explain.html">QueryCM/Java_cmQueryUI_Explain.html</a>.</p>
  99. <p class="FormLabel">RenderReport</p>
  100. <p class="formText">This sample demonstrates how to run
  101. a report in HTML format and then render the report output in XML. The explanation file is <a href="RenderReport/Java_RenderUI_Explain.html">RenderReport/Java_RenderUI_Explain.html</a>.</p>
  102. <p class="FormLabel">ReportAdd</p>
  103. <p class="formText">This sample demonstrates how to add
  104. a report to the content store based on an existing report specification. The explanation file is <a href="ReportAdd/Java_AddReportUI_Explain.html">ReportAdd/Java_AddReportUI_Explain.html</a>.</p>
  105. <p class="FormLabel">ReportCopyMove</p>
  106. <p class="formText">This sample copies or moves a report
  107. to another location. The explanation file is <a href="ReportCopyMove/Java_CopyMoveReportUI_Explain.html">ReportCopyMove/Java_CopyMoveReportUI_Explain.html</a>.</p>
  108. <p class="FormLabel">ReportCreate</p>
  109. <p class="formText">This sample allows you to create
  110. a new report. It prompts you to select the columns that you want
  111. to add to the report. The explanation file is <a href="ReportCreate/Java_CreateReportUI_Explain.html">ReportCreate/Java_CreateReportUI_Explain.html</a>.</p>
  112. <p class="FormLabel">ReportDelete</p>
  113. <p class="formText">This sample deletes a report from
  114. the content store. The explanation file is <a href="ReportDelete/Java_DeleteReportUI_Explain.html">ReportDelete/Java_DeleteReportUI_Explain.html</a>.</p>
  115. <p class="FormLabel">ReportParams</p>
  116. <p class="formText">This utility class is used by other
  117. samples to execute a prompted report. It retrieves the parameters
  118. required by the report, builds an array of parameter values, and
  119. then passes those parameters to the execute method to run the report.</p>
  120. <p class="FormLabel">ReportSpec</p>
  121. <p class="formText">When you run this sample, you will
  122. be prompted to select a column to add to a report. This sample modifies
  123. a report specification using a Document Object Model (DOM) parser.
  124. It retrieves the report specification, changes
  125. the specification using the DOM parser, and then saves the modified
  126. report back to the content store. The explanation file is <a href="ReportSpec/Java_EditReportSpecUI_Explain.html">ReportSpec/Java_EditReportSpecUI_Explain.html</a>.</p>
  127. <p class="FormLabel">ReportUpgrade</p>
  128. <p class="formText">This sample upgrades the <code>specification</code> property
  129. of report objects in the content store. It also
  130. allows report specifications to be extracted to the local file system, as
  131. they exist, or upgraded. The explanation file is <a href="ReportUpgrade/Java_ReportUpgrade_Explain.html">ReportUpgrade/Java_ReportUpgrade_Explain.html</a>.</p>
  132. <p class="FormLabel">runreport</p>
  133. <p class="formText">This sample runs a report and saves
  134. the output as HTML. By default, the selected report is Product Introduction List
  135. in the SDK Report Samples folder of
  136. the GO Data Warehouse (query) package. You can change the report to be
  137. run by editing the Java code.</p>
  138. <p class="formText">When the report execution
  139. is complete, the report appears in the Java samples location <em>installation_location</em>/webcontent/samples.
  140. You can then open the file to view the result.</p>
  141. <p class="formText">The explanation file is runreport/README.txt</a>.</p>
  142. <p class="FormLabel">SaveAs</p>
  143. <p class="formText">This sample executes a report and saves
  144. either the report or the report output back in the content store. The explanation file is <a href="SaveAs/Java_SaveReportUI_Explain.html">SaveAs/Java_SaveReportUI_Explain.html</a>.</p>
  145. <p class="FormLabel">Scheduler</p>
  146. <p class="formText">This sample creates a new schedule for
  147. a report. The explanation file is <a href="Scheduler/Java_NewScheduler_Explain.html">Scheduler/Java_NewScheduler_Explain.html</a>.</p>
  148. <p class="FormLabel">Security</p>
  149. <p class="formText">These samples allow you to perform a
  150. number of security related tasks, such as logging on to a secured
  151. namespace, logging off, and displaying the current logon information.
  152. If you are not logged on when you attempt to display your logon
  153. information, you will be prompted to log on. The explanation file is <a href="Security/Java_SecurityUI_Explain.html">Security/Java_SecurityUI_Explain.html</a>.</p>
  154. <p class="formText">Although
  155. most of the samples will work when Anonymous access is enabled,
  156. they serve as more robust examples when a secured namespace is used.</p>
  157. <p class="FormLabel">SendEmail</p>
  158. <p class="formText">This sample demonstrates how to run
  159. a report and send the output as an email to a specific user. IBM Cognos must be configured with permissions to send
  160. email to a valid email server. For more information, see the <em>Administration
  161. and Security Guide</em>. The explanation file is <a href="SendEmail/Java_EmailUI_Explain.html">SendEmail/Java_EmailUI_Explain.html</a>.</p>
  162. <p class="FormLabel">Submit</p>
  163. <p class="formText">This sample submits a report for execution
  164. as a job. The explanation file is <a href="Submit/Java_SubmitReportUI_Explain.html">Submit/Java_SubmitReportUI_Explain.html</a>.</p>
  165. <p class="FormLabel">TestDIMS</p>
  166. <p class="formText">This sample sends a runSpecification() request to the dimension management service using XML supplied by the user,
  167. and displays the response. Requires Business Viewpoint setup. <a href="TestDIMS/Java_DimensionManagementServiceTest_Explain.html">Java_DimensionManagementServiceTest_Explain.html</a>.</p>
  168. <p class="FormLabel">TesterCM</p>
  169. <p class="formText">This sample tests that the content store
  170. is operational. The explanation file is <a href="TesterCM/Java_CMTesterUI_Explain.html">TesterCM/Java_CMTesterUI_Explain.html</a>.</p>
  171. <p class="FormLabel">TesterQueryService</p>
  172. <p class="formText">This sample allows the user to perform query service operations.
  173. The explanation file is <a href="TesterQueryService/Java_QueryServiceUI_Explain.html">TesterQueryService/Java_QueryServiceUI_Explain.html</a>.</p>
  174. <p class="FormLabel">ViewAll</p>
  175. <p class="formText">This sample displays a list of all packages,
  176. reports, and queries in the content store. The explanation file is <a href="ViewAll/Java_ViewAllUI_Explain.html">ViewAll/Java_ViewAllUI_Explain.html</a>.</p>
  177. <p class="FormLabel">ViewCMPackages</p>
  178. <p class="formText">This sample displays a list of
  179. all packages in the content store. The explanation file is <a href="ViewCMPackages/Java_ViewPackagesUI_Explain.html">ViewCMPackages/Java_ViewPackagesUI_Explain.html</a>.</p>
  180. <p class="FormLabel">ViewCMReports</p>
  181. <p class="formText">This sample displays a list of all
  182. reports and queries in the content store. The explanation file is <a href="ViewCMReports/Java_ViewReportsUI_Explain.html">ViewCMReports/Java_ViewReportsUI_Explain.html</a>.</p>
  183. <!-- * * * * * * * * * -->
  184. <!-- -->
  185. <!-- Documentation -->
  186. <!-- -->
  187. <!-- * * * * * * * * * -->
  188. <p class="FormLabel">Documentation</p>
  189. <p class="formText">The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the chapter titled 'Methods' and the appendix titled 'Code Samples and Language-Specific Coding Practices'.</p>
  190. <p class="formText">Please note that the samples are not intended to be treated as end-user applications. Refer to the sample code for examples of how to use the API when developing your own applications.</p>
  191. </BODY>
  192. </HTML>