createACLEntry (ACL - Java)

Creates an entry in the ACL with the name and level that you specify.

Defined in

ACL

Syntax

public ACLEntry createACLEntry(String name, int level)
    throws NotesException

Parameters

String name

The name of the person, group, or server for whom you want to create an entry in the ACL. You must supply the complete name, but hierarchical names can be in abbreviated format. Case is not significant.

int level

The level that you want to assign to this person, group, or server in the ACL. May be any of the following:

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

Return value


ACLEntry

The newly-created entry.

Usage

You must call save on the ACL if you want the modified ACL to be saved to disk.

Example