Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

doc

Static displayName

displayName: string = ""

Static id

id: string = "id"

The id property within the document contained by this node type, defaults to 'id'

Static parentId

parentId: string

String indicating the property on this nodes document that contains the id(s) of its parent.

Static permissionPropertyKey

permissionPropertyKey: string = "permissions"

Static repository

repository: Repository

The repository for this node type, provides async getter function. Must follow the Repository interface spec.

Methods

determineAccess

explainPermission

  • explainPermission(resource: Resource, permissionType: string, options?: PermOpts): Promise<string>

getClass

getHierarchyClassNames

  • getHierarchyClassNames(): string[]

getHierarchyIds

  • getHierarchyIds(): Promise<string[]>

getId

  • getId(): string

getName

  • getName(): string

getNodeDepth

  • getNodeDepth(): number

getNodeSubclass

  • getNodeSubclass(): Node

getParentClass

  • getParentClass(): Node

getParentNode

getParents

  • getParents(): Promise<Node[]>
  • Get the parent objects of an instance of this node. Must be overriden by subclass unless the static parentId is defined.

    Returns Promise<Node[]>

getRepository

hierarchyRoot

  • hierarchyRoot(): boolean
  • Check if this class direcly inherits from HierarchyNode by checking if the class two levels up is Node

    Returns boolean

isAllowed

  • isAllowed(resource: Resource, permissionType: string, options?: PermOpts): Promise<boolean>

isNodeType

  • isNodeType(nc: Node): boolean

toString

  • toString(): string

Static assertNodeClass

  • assertNodeClass(nodeClass: Node): void

Static getHierarchyClassNames

  • getHierarchyClassNames(): string[]

Static getNodeDepth

  • getNodeDepth(): number

Generated using TypeDoc