Options
All
  • Public
  • Public/Protected
  • All
Menu

RouteAndBusinessSyncer installs / uninstalls modules according to the app URI

collboard-system

Hierarchy

  • AbstractSyncer
    • RouteAndBusinessSyncer

Implements

  • ISyncer
  • IDestroyable

Index

Constructors

  • Parameters

    • systems: ISystemsExtended

    Returns RouteAndBusinessSyncer

Properties

modulesStorage: Promisable<IModulesStorageWeak>
ready: Promise<void>

Promise which is resolved when the system is initialized and ready to use.

subscription: any
systems: ISystemsExtended

Accessors

  • get firstSynchronization(): Promise<void>
  • Promise that resolves when the first synchronization is done

    Returns Promise<void>

  • get installations(): ModuleInstallation[]
  • Returns ModuleInstallation[]

  • get isDestroyed(): boolean
  • Is this object destroyed?

    Returns boolean

  • get isReady(): boolean
  • Checks if the system is initialized and ready to use.

    Returns boolean

  • get statusOf(): (moduleManifest: IModuleManifest) => BehaviorSubject<ModuleStatus>
  • Returns (moduleManifest: IModuleManifest) => BehaviorSubject<ModuleStatus>

Methods

  • Binds new registration with itself. This registration/destroyable will be destroyed with this.

    Parameters

    • Rest ...subdestroyable: ITeardownLogic[]

    Returns RouteAndBusinessSyncer

  • checkIsReady(): void
  • Checks if the system is initialized and ready to use. If not, throws an error. If it is, do nothing.

    Returns void

  • checkWhetherNotDestroyed(errorMessage?: string, runBeforeError?: () => void): void
  • Checks, whether the object is not destroyed

    Parameters

    • Optional errorMessage: string

      Message that will replace default one before error

    • Optional runBeforeError: () => void

      Callback runed before error is thrown; typically this can be some logging

        • (): void
        • Returns void

    Returns void

  • destroy(): Promise<void>
  • Returns Promise<void>

  • init(): Promise<void>
  • Returns Promise<void>

  • initSyncer(): Promise<void>
  • Returns Promise<void>

  • install(dependency: IDependency, syncerName?: string): Promise<void>
  • Parameters

    • dependency: IDependency
    • Optional syncerName: string

    Returns Promise<void>

  • sync(dependenciesTarget: IDependenciesRecord): Promise<void>
  • TODO: !! Probbably do not use confusing shortcut sync but synchronize

    Parameters

    • dependenciesTarget: IDependenciesRecord

    Returns Promise<void>

  • This is for CollboardApp when it not found current board

    Parameters

    Returns Promise<void>

  • This is for CollboardApp when it not found current board

    Parameters

    Returns Promise<void>

  • uninstall(dependency: IDependency): Promise<void>
  • Parameters

    • dependency: IDependency

    Returns Promise<void>

  • uninstallAll(): Promise<void>
  • Returns Promise<void>

  • isDestroyable(obj: any): obj is IDestroyable
  • Chcek whether the given object is destroyable

    Parameters

    • obj: any

    Returns obj is IDestroyable