12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <HTML>
- <HEAD>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: DOCS
- (C) Copyright IBM Corp. 2005, 2008
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
- IBM Corp.
- -->
- <TITLE>IBM Cognos Java GroupsAndRolesGUI Program Sample</TITLE>
- <link rel="STYLESHEET" type="text/css" href="../../../webcontent/samples/samplesFonts.css">
- </HEAD>
- <BODY>
- <p class="headerTitle"><img src="../../../webcontent/samples/sdk/asp/images/go_logo_small.gif"> IBM Cognos Sample Programs</p>
- <p class="FormLabel">GroupsAndRolesGUI.java - Create, add and delete groups and roles.</p>
- <p class="formText">The Java GroupsAndRolesGUI sample program provides methods to create, add, and delete groups and roles.</p>
- <br>
- <!-- * * * * * * * * * -->
- <!-- -->
- <!-- Dependent Files -->
- <!-- -->
- <!-- * * * * * * * * * -->
- <p class="FormLabel">Dependent Files</p>
- <p class="formText">Associated files are contained under the java sample folder.<br>
- Additional files required for running are identified in the CLASSPATH definitions in the file run.bat.</p>
- <!-- * * * * * * * * * -->
- <!-- -->
- <!-- How To Run -->
- <!-- -->
- <!-- * * * * * * * * * -->
- <p class="FormLabel">How To Run The Sample Program</p>
- <p class="formText">Double click on the file run.bat.<br><br>
- A window will be opened containing:<br>
- - Select Option dropdown box<br>
- - Run Option command button<br>
- - URL text box<br>
- - Output pane<br>
- Select the desired sample option from the Select Option dropdown box and click on the 'Run Option' button to run the selected option.</p>
- <!-- * * * * * * * * * -->
- <!-- -->
- <!-- Expected Results -->
- <!-- -->
- <!-- * * * * * * * * * -->
- <p class="FormLabel">Expected Results</p>
- <p class="formText">
- When the CreateGroup option is selected, a group is created in the Cognos namespace.<br>
- When the CreateRole option is selected, a role is created in the Cognos namespace.<br>
- When the DeleteGroup option is selected, the specified group is deleted.<br>
- When the DeleteRole option is selected, the specified role is deleted.<br>
- When the Add User to Group option is selected, the specified user is added to the specified group.<br>
- When the Add User to Role option is selected, the specified user is added to the specified role.<br>
- When the Remove from Group option is selected, the specified user is removed from the specified group.<br>
- When the Remove from Role option is selected, the specified user is removed from the specified role.
- </p>
- <p class="formText">
- A confirmation message is sent to the Output pane upon completion.
- </p>
- <p class="formText">If you run samples that affect security settings, you may wish to use a test account. If you use a real account, you may need to ask your administrator to restore permissions or capabilities that you remove. If there is only one administrator account, do not run these samples as that user.</p>
- <!-- * * * * * * * * * -->
- <!-- -->
- <!-- Documentation -->
- <!-- -->
- <!-- * * * * * * * * * -->
- <p class="FormLabel">Documentation</p>
- <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>
- <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>
- </BODY>
- </HTML>
|