IBM Cognos Sample Programs

PermissionsGUI.java - Modifies permissions.

The Java PermissionsGUI sample program modifies permissions.


Dependent Files

Associated files are contained under the java sample folder.
Additional files required for running are identified in the CLASSPATH definitions in the file run.bat.

How To Run The Sample Program

Initial Setup:

Depending on your configuration, you may need to perform the following setup before the sample will execute properly.
1. Log on to IBM Cognos Connection as the user you will use to run the sample.
2. Click the My Folders tab.
3. Click Set Properties for My Folders.
4. Click the Permissions tab.
5. Select the Override the access permissions acquired from the parent entry checkbox.
6. In the Grant and Deny pane on the right side of the page, select the Read checkbox under the Grant column, and click Apply.
    The user is now granted Read permission.


Double click on the file run.bat.

A window will be opened containing:
    - Set Permissions command button
    - URL text box
    - Results Display Pane
Click on the 'Set Permissions' button to run the sample program.

Expected Results

By default, read permission will be denied to the current user's My Folders folder. A confirmation message will be displayed in the Results Display Window.

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.

Documentation

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'.

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.