Skip to main content


developerWorks  >  Information Management  >

Sample Program for Setting DB2 Content Manager Access Control List

developerWorks

Level: Introductory

Lijing Zhang (lijing@us.ibm.com), Software Engineer, IBM

15 Jun 2003

Get the download

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:

  1. Verify that Content Manager and Information Integrator for Content are installed. (This will take care of all other installation prerequisites.)
  2. 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:

  1. Copy the sample code to c:\temp directory.
  2. Open an Information Integrator for Content Development Window.
  3. Enter the command cd c:\temp.
  4. Enter the command javac setItemACL.java to compile the code.
  5. Enter the command java setItemACL <library server database> <userName> <password> to execute the code.


Download

DescriptionNameSizeDownload method
The setItemACL.java filesetItemACL.java11KBHTTP
Information about download methods


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

Lijing Zhang is a software engineer at the IBM Developer Technical Support Center in Dallas, Texas. He is the co-author of IBM Content Manager for Multiplatforms Version 8.1 System Administration Certification Study Guide. You can reach Lijing Zhang at lijing@us.ibm.com.




Rate this content


Please take a moment to complete this form to help us better serve you.



 


 


Not
useful
Extremely
useful
 


Back to top


Document options

Document options requiring JavaScript are not displayed

Sample code


New site feature

Check out our new article design and features. Tell us what you think.


Rate this content

Help us improve this content