ACLEntry (Java)

Represents a single entry in an access control list. An entry may be for a person, a group, or a server.

Syntax

public class ACLEntry extends Base

Containment

Contained by: ACL

Contains: Name

Properties

IsAdminReaderAuthor through isAdminReaderAuthor and setAdminReaderAuthor

IsAdminServer through isAdminServer and setAdminServer

IsCanCreateDocuments through isCanCreateDocuments and setCanCreateDocuments

IsCanCreateLSOrJavaAgent through isCanCreateLSOrJavaAgent and setCanCreateLSOrJavaAgent

IsCanCreatePersonalAgent through isCanCreatePersonalAgent and setCanCreatePersonalAgent

IsCanCreatePersonalFolder through isCanCreatePersonalFolder and setCanCreatePersonalFolder

IsCanCreateSharedlFolder through isCanCreateSharedFolder and setCanCreateSharedFolder

IsCanDeleteDocuments through isCanDeleteDocuments and setCanDeleteDocuments

IsCanReplicateOrCopyDocuments through isCanReplicateOrCopyDocuments and setCanReplicateOrCopyDocuments

IsGroup through isGroup and setGroup

IsPerson through isPerson and setPerson

IsPublicReader through isPublicReader and setPublicReader

IsPublicWriter through isPublicWriter and setPublicWriter

IsServer through isServer and setServer

Level through getLevel and setLevel

Name through getName and setName

NameObject through getNameObject

Parent through getParent

Roles through getRoles

UserType through getUserType and setUserType

Methods

disableRole

enableRole

isRoleEnabled

recycle

remove

toString

Creation and access

To create a new ACLEntry object, use createACLEntry in ACL.

The ACL class provides three ways to access an existing ACLEntry:

  • To access an entry in an ACL when you know its name, use getEntry.
  • To access the first entry in the ACL, use getFirstEntry.
  • To access entries after the first one, use getNextEntry.

After modifying an ACL entry, you must call the save method on the ACL if you want the modified ACL to be saved to disk.

Example