IBM Cognos Sample Programs

CapabilitiesGUI.java - Modify Capabilities.

The Java CapabilitiesGUI sample program contains methods for handling capabilities.


Dependent Files

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

How To Run The Sample Program

Double click on the file run.bat.

A window will be opened containing:
    - URL text box
    - Set Capabilities command button
    - A combobox to select a user or role
    - A combobox to select a package
    - Output pane
Click on the 'Set Capabilities' button to run the sample program.

Expected Results

The user running this sample must have the capability canUseObjectCapabilities.

By default, the program adds the canUseReportStudio capability for the selected account or role at both the global level and for the selected package. A confirmation message is sent to the Output pane upon completion.

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.