Class Acl

Creates a new Acl object, with an empty rule set for an object

Hierarchy

  • Acl

Constructors

Properties

read: Permission = ...

The read permission of the object

write: Permission = ...

The write permission of the object

Methods

  • Allows the given user or rule to read the object

    Returns

    this acl object

    Parameters

    Returns Acl

  • Allows the given user or rule to write the object

    Returns

    this acl object

    Parameters

    Returns Acl

  • Removes all acl rules, read and write access is public afterwards

    Returns

    Returns void

  • Copies permissions from another ACL

    Returns

    Parameters

    • acl: Acl

      The ACL to copy from

    Returns Acl

  • Deletes any read allow/deny rule for the given user or role

    Returns

    this acl object

    Parameters

    Returns Acl

  • Deletes any write allow/deny rule for the given user or role

    Returns

    this acl object

    Parameters

    Returns Acl

  • Denies the given user or rule to read the object

    Returns

    this acl object

    Parameters

    Returns Acl

  • Denies the given user or rule to write the object

    Returns

    this acl object

    Parameters

    Returns Acl

  • Sets the acl rules form JSON

    Returns

    Parameters

    • json: JsonMap

      The json encoded acls

    Returns void

  • Gets whenever all users and roles have the permission to read the object

    Returns

    true If public access is allowed

    Returns boolean

  • Gets whenever all users and roles have the permission to write the object

    Returns

    true If public access is allowed

    Returns boolean

  • Checks whenever the user or role is explicit allowed to read the object

    Returns

    true if read access is explicitly allowed for the given user or role

    Parameters

    Returns boolean

  • Checks whenever the user or role is explicit denied to read the object

    Returns

    true if read access is explicitly denied for the given user or role

    Parameters

    Returns boolean

  • Checks whenever the user or role is explicit allowed to write the object

    Returns

    true if write access is explicitly allowed for the given user or role

    Parameters

    Returns boolean

  • Checks whenever the user or role is explicit denied to write the object

    Returns

    true if write access is explicitly denied for the given user or role

    Parameters

    Returns boolean

  • Sets whenever all users and roles should have the permission to read the object

    Note: All other allow read rules will be removed.

    Returns

    Returns void

  • Sets whenever all users and roles should have the permission to write the object

    Note: All other allow write rules will be removed.

    Returns

    Returns void

  • A JSON representation of the set of rules

    Returns

    Returns JsonMap

Generated using TypeDoc