Options
All
  • Public
  • Public/Protected
  • All
Menu

The Document definition for a JournalEntryPage. Defines the data schema and common behaviours for a JournalEntryPage which are shared between both client and server.

mixes

JournalEntryPageData

memberof

documents

param data

Initial data from which to construct the JournalEntryPage.

param context

Construction context options.

Hierarchy

Index

Constructors

Methods

Properties

Accessors

Constructors

Methods

  • getUserLevel(user: any): any
  • Get the explicit permission level that a User has over this Document, a value in CONST.DOCUMENT_OWNERSHIP_LEVELS. This method returns the value recorded in Document ownership, regardless of the User's role. To test whether a user has a certain capability over the document, testUserPermission should be used.

    Parameters

    • user: any

      The User being tested

    Returns any

    A numeric permission level from CONST.DOCUMENT_OWNERSHIP_LEVELS or null

Properties

metadata: any = ...

Default metadata which applies to each instance of this Document type.

Accessors

  • get TYPES(): string[]
  • The allowed set of JournalEntryPageData types which may exist.

    Returns string[]