Hierarchy

Implements

Constructors

constructor

Properties

Protected Readonly _fields

_fields: readonly Readonly<Field<dts.Type>>[]

Private children

Readonly code

code: string

data

data: dts.Based<OrganisationStructureData> = <any>{}

Protected Readonly factory

factory: EntityFactory

fields

fields: object = <any>{}

Type declaration

Private isAdded

isAdded: boolean

Readonly kind

kind: "orgstruct" = "orgstruct"

Readonly namespace

namespace: string

Private Optional parent

Private Optional sort

sort: undefined | number

Static Readonly code

code: "orgstruct" = "orgstruct"

Static Readonly namespace

namespace: "system" = "system"

Accessors

fieldsDataDiff

  • get fieldsDataDiff(): object

id

  • get id(): string

Methods

addChild

allLevelSubItems

Private containsChild

fetch

  • fetch(): Promise<this>

Protected fillData

  • fillData(data: any): void

Protected fillFields

  • fillFields(): void

find

getChildren

getIds

Private getLastChild

Private getLastChildSort

  • getLastChildSort(): number
  • Returns number

getParent

Private insertChild

isDepartment

  • isDepartment(): boolean

isGroup

  • isGroup(): boolean

isPosition

  • isPosition(): boolean

Private isRoot

  • isRoot(): boolean
  • Returns boolean

json

  • json(): any

moveAfter

  • moveAfter(): void

moveBefore

  • moveBefore(): void

Private moveChild

moveToParent

normalize

  • normalize(): void

Private onAdded

Protected onFieldDataChanged

  • onFieldDataChanged(code: string, data: any): void

Private onRemoved

  • onRemoved(): void
  • Returns void

removeChild

Private setParent

Static getFieldCode

  • getFieldCode(field: Field<any>): string

Static getFieldData

  • getFieldData<F>(factory: EntityFactory, namespace: string, code: string, field: Readonly<Field<FieldTypeToEnum<F>>>, data?: undefined | object): dts.FieldType<F> | undefined

Static getFieldJSON

Static getFieldValue

Static isUserCollection

  • isUserCollection(namespace: string, code: string): boolean