Options
All
  • Public
  • Public/Protected
  • All
Menu

Class for building Resource/Subject class hierarchy based on schema

Hierarchy

  • Graph

Index

Constructors

constructor

Properties

resourceChildMap

resourceChildMap: Map<string, Map<string, Resource>> = new Map<string, Map<string, typeof Resource>>()

resources

resources: Map<string, Resource>

Properties to contain generated classes

schema

schema: Schema

subjectChildMap

subjectChildMap: Map<string, Map<string, Subject>> = new Map<string, Map<string, typeof Subject>>()

subjects

subjects: Map<string, Subject>

Methods

getChildResources

getChildSubjects

  • getChildSubjects(node: string | Node): Array<Subject>

getClass

getParentResources

getParentSubjects

  • getParentSubjects(node: string | Node): Array<Subject>

getResource

getSubject

Static buildResourceHierachy

Static buildSubjectHierachy

  • Build map of nodeName -> SubjectClass for gracl hierarchy NOTE: this is a duplicate of buildResourceHierachy that is necessary for reasons explained above due to limitations in the type system.

    Parameters

    Returns Map<string, Subject>

Static resolveNodeName

  • resolveNodeName(node: string | Node): string

Generated using TypeDoc