 | Level: Introductory Lijing Zhang (lijing@us.ibm.com), Software Engineer, IBM
15 Jun 2003 This sample code demonstrates how to set an Access Control List (ACL)
for an item stored in Content Manager(CM) V8.x through Information Integration for
Content V8.x API.
In this sample
This sample Java® program demonstrates how to set an access control list (ACL)
for an item stored in DB2®; Content Manager (CM) v8.x using a DB2 Information Integrator™ for Content v8.x API. When an item is imported into Content Manager, a default ACL is assigned for each Library Server configuration. This sample code shows how to assign a different ACL to the item.
System requirements
This sample program is valid on all platforms which support CM and Information Integrator for Content. Currently there are three supported platforms:
- AIX®
- Solaris operating environment
- Windows®
To run the sample program, you will need to have completed the following steps:
- Verify that Content Manager and Information Integrator for Content are installed. (This will take care of all other installation prerequisites.)
- The batch file
cmbenv81.bat (on Windows) or cmbenv81.sh (on AIX or Solaris) must be run before executing the sample code.
This will set up the proper environment. To run these scripts:
- On Windows, open a command window and run
cmbemv81.bat.
- On AIX, enter the following commands:
cd /usr/lpp/cmb/bin
../cmbenv81.sh |
- On Solaris, enter the following commands:
cd /opt/IBMcmb/bin
../cmbenv81.sh
|
In addition, note that the first item in the item type of NOINDEX must be available to check out while running this sample code. Content Manager Access Control List (ACL) "acl101" must be created before running the sample code. For details on creating the ACL on the CM system administration client, read Content Manager for Multiplatforms System Administration Guide.
Running the sample program
Follow these steps to execute the sample code:
- Copy the sample code to c:\temp directory.
- Open an Information Integrator for Content Development Window.
- Enter the command
cd c:\temp.
- Enter the command
javac setItemACL.java to compile the code.
- Enter the command
java setItemACL <library server
database> <userName> <password> to execute the code.
Download | Description | Name | Size | Download method |
|---|
| The setItemACL.java file | setItemACL.java | 11KB | HTTP |
|---|
Resources Learn
Get products and technologies
-
Build your next development project with
IBM
trial software, available for download directly from developerWorks.
Discuss
About the author
Rate this content
|  | |  |