Options
Menu

Class ModelPermissions

A set of permissions that are configurable on a given model.

Hierarchy

  • ModelPermissions

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ModelPermissions(read: boolean, write: boolean, remove: boolean, manage: boolean): ModelPermissions
  • Creates a new ModelPermissions object.

    Parameters

    • read: boolean
    • write: boolean
    • remove: boolean
    • manage: boolean

    Returns ModelPermissions

Properties

manage

manage: boolean

Set to true to permit managing the permissions on a model.

read

read: boolean

Set to true to allow read access to a model.

remove

remove: boolean

Set to true to permit deleting a model.

write

write: boolean

Set to true to allow write access to a model.

NONE

NONE: ModelPermissions = new ModelPermissions(false, false, false, false)

Methods

toJSON

fromJSON

  • Creates a new ModelPermissions class from a JSON representation.

    Parameters

    Returns ModelPermissions

    A ModelPermissions instance initialized from the JSON Object.