ACL (Java)

Represents the access control list (ACL) of a database.

Syntax

public class ACL extends Base

Containment

Contained by: Database

Contains: ACLEntry

Properties

AdministrationServer through getAdministrationServer and setAdministrationServer

InternetLevel through getInternetLevel and setInternetLevel

IsAdminNames through isAdminNames and setAdminNames

IsAdminReaderAuthor through isAdminReaderAuthor and setAdminReaderAuthor

IsExtendedAccess through isExtendedAccess and setExtendedAccess

IsUniformAccess through isUniformAccess and setUniformAccess

Parent through getParent

Roles through getRoles

Methods

addRole

createACLEntry

deleteRole

getEntry

getFirstEntry

getNextEntry

recycle

removeACLEntry

renameRole

save

Access

Every Database object contains an ACL object representing the access control list of that database. To get it, use getACL in Database.

Usage

The Database class has three methods you can use to access and modify an ACL without getting an ACL object: queryAccess, grantAccess, and revokeAccess. However, using these methods at the same time that an ACL object is in use may produce inconsistent results.

Example