Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractModel

Abstract: this class should never be instantiated. Implementation of IModel.

Hierarchy

  • AbstractModel

Implements

Index

Constructors

constructor

Properties

id

id: string

metaModelVersion

metaModelVersion: Version

mxVersionForModel

mxVersionForModel: Version

root

workingCopy

workingCopy: IWorkingCopy

Methods

addModuleUnitInterfaces

allUnits

closeConnection

deleteFile

deleteWorkingCopy

exportModuleMpk

  • exportModuleMpk(moduleId: string, outFilePath: string, callback: IVoidCallback, errorCallback?: IErrorCallback): void
  • exportModuleMpk(moduleId: string, outFilePath: string): Promise

exportMpk

  • exportMpk(outFilePath: string, callback: IVoidCallback, errorCallback?: IErrorCallback): void
  • exportMpk(outFilePath: string): Promise

filterUnitsByCustomWidgetId

  • filterUnitsByCustomWidgetId(workingCopyId: string, widgetId: string, callback: ICallback<string[]>, errorCallback: IErrorCallback): void
  • filterUnitsByCustomWidgetId(workingCopyId: string, widgetId: string): Promise

getAppEnvironmentStatus

getAppEnvironmentStatusV2

getAppUpdateStatus

getFile

  • getFile(filePath: string, outFilePath: string, callback: IVoidCallback, errorCallback: IErrorCallback): void
  • getFile(filePath: string, outFilePath: string): Promise

getFilePaths

getFiles

handleError

  • handleError(message: string, errorCallback: IErrorCallback | undefined): void
  • Parameters

    Returns void

importModuleMpk

  • importModuleMpk(mpkPath: string | Blob, callback: IVoidCallback, errorCallback?: IErrorCallback): void
  • importModuleMpk(mpkPath: string | Blob): Promise

loadUnitById

  • loadUnitById<T>(id: string, forceRefresh: boolean | undefined, callback: ICallback<T>, errorCallback?: IErrorCallback): void
  • loadUnitById<T>(id: string, forceRefresh: boolean | undefined): Promise
  • Fetches a complete unit. The result might be returned from the cache.

    Type parameters

    Parameters

    Returns void

  • Type parameters

    Parameters

    • id: string
    • forceRefresh: boolean | undefined

    Returns Promise

onEventProcessed

putFile

  • putFile(inFilePath: string | Blob, filePath: string, callback: IVoidCallback, errorCallback: IErrorCallback): void
  • putFile(inFilePath: string | Blob, filePath: string): Promise

setErrorHandler

startAppUpdate

startReceivingEvents

  • startReceivingEvents(): void

stopReceivingEvents

  • stopReceivingEvents(): void

Generated using TypeDoc