Examining and adjusting an access control list using Java

You examine and adjust the access control list (ACL) of a database through the following classes:

The access levels used by the Level and InternetLevel properties are as follows:

  • ACL.LEVEL_NOACCESS
  • ACL.LEVEL_DEPOSITOR
  • ACL.LEVEL_READER
  • ACL.LEVEL_AUTHOR
  • ACL.LEVEL_EDITOR
  • ACL.LEVEL_DESIGNER
  • ACL.LEVEL_MANAGER

The permissions properties apply to the access levels as shown in the following table. "Always" means the permission is always true at that access level; "never" means the permission is never true at that access level. "Def yes" means that the permission is true by default at that access level and can be adjusted. "Def no" means that the permission is false by default at that access level and can be adjusted.

Permissions

Manager

Designer

Editor

Author

Reader

Depositor

No access

CanCreateDocuments

Always

Always

Always

Def yes

Never

Always

Never

CanCreateLSOrJava

Always

Def no

Def no

Def no

Def no

Never

Never

CanCreatePersonalAgent

Always

Always

Def no

Def no

Def no

Never

Never

CanCreatePersonalFolder

Always

Always

Def no

Def no

Def no

Never

Never

CanCreateSharedFolder

Always

Always

Def no

Never

Never

Never

Never

CanDeleteDocuments

Def yes

Def yes

Def yes

Def yes

Never

Never

Never

PublicReader

Always

Always

Always

Always

Always

Def no

Def no

PublicWriter

Always

Always

Always

Def no

Def no

Def no

Def no

You must use the save method of ACL to write to permanent storage changes you make to the ACL and ACL entries. Otherwise, the changes are lost when your program exits.