CSharp_Permissions_Explain.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <HTML>
  2. <HEAD>
  3. <!--
  4. Licensed Materials - Property of IBM
  5. IBM Cognos Products: DOCS
  6. (C) Copyright IBM Corp. 2005, 2008
  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 C# Permission Program Sample</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">permissions.sln - Modifies permissions in IBM Cognos Connection</p>
  16. <p class="formText">The C# Permissions sample program modifies permissions.</p>
  17. <br>
  18. <!-- * * * * * * * * * -->
  19. <!-- -->
  20. <!-- Dependent Files -->
  21. <!-- -->
  22. <!-- * * * * * * * * * -->
  23. <p class="FormLabel">Dependent Files</p>
  24. <p class="formText">All associated files are contained in the bin directory of the csharp directory.</p>
  25. <!-- * * * * * * * * * -->
  26. <!-- -->
  27. <!-- How To Run -->
  28. <!-- -->
  29. <!-- * * * * * * * * * -->
  30. <p class="FormLabel">How To Run The Sample Program</p>
  31. <p class="FormLabel">Initial Setup:</p>
  32. <p class="formText">
  33. 1. Log on to IBM Cognos Connection as an administrator.<br>
  34. 2. In the folder <b>Public Folders>Samples>Models</b>, click the <b>GO Sales (query)</b> package.<br>
  35. 3. For the Report Studio Report Samples folder, click Set Properties.<br>
  36. 4. Click the <b>Permissions</b> tab.<br>
  37. 5. Select the <b>Override the access permissions acquired from the parent entry</b> checkbox.<br>
  38. 6. Click the <b>Add</b> button.<br>
  39. 7. Click the name of the namespace that includes the user for which you want to modify permissions.<br>
  40. 8. Select the <b>Show users in the list</b> checkbox.<br>
  41. 9. Select the checkbox of the user that you want to add, and click <b>Add</b>.<br>
  42. The user now appears in the lower pane named <b>Entries to be added</b>.<br>
  43. 10. In this lower pane, select the checkbox of the user that you just added, and click <b>OK</b>.<br>
  44. The user now appears in the list. The user has no permissions.<br>
  45. 11. Select the checkbox of the user that you just added.<br>
  46. 12. In the Grant and Deny pane on the right side of the page, select the <b>Read</b> checkbox under the
  47. Grant column, and click <b>OK</b>.
  48. The user is now granted Read permission.
  49. </p>
  50. <p class="formText">Double click on the file ../bin/permissions.exe.<br><br>
  51. A window will be opened containing:<br>
  52. &nbsp;&nbsp;&nbsp;&nbsp;- Set Permissions command button<br>
  53. &nbsp;&nbsp;&nbsp;&nbsp;- URL text box<br>
  54. &nbsp;&nbsp;&nbsp;&nbsp;- Results Display Window <br>
  55. Click on the 'Set Permissions' button to run the sample program.</p>
  56. <!-- * * * * * * * * * -->
  57. <!-- -->
  58. <!-- Expected Results -->
  59. <!-- -->
  60. <!-- * * * * * * * * * -->
  61. <p class="FormLabel">Expected Results</p>
  62. <p class="formText">By default, read permission will be denied to the Report Studio Report Samples folder.</p>
  63. <!-- * * * * * * * * * -->
  64. <!-- -->
  65. <!-- Documentation -->
  66. <!-- -->
  67. <!-- * * * * * * * * * -->
  68. <p class="FormLabel">Documentation</p>
  69. <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>
  70. <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>
  71. </BODY>
  72. </HTML>