File

core/common/global-config.service.ts

Index

Properties
Methods

Constructor

constructor(inventory: InventoryService)
Parameters :
Name Type Optional
inventory InventoryService No

Methods

Async getGlobalConfig
getGlobalConfig(fragmentType: string)

Retrieves the global configuration for a specific fragment type.

Parameters :
Name Type Optional Description
fragmentType string No
  • The fragment type on which the managed object type corresponds.
Returns : Promise<IManagedObject | undefined>

A promise that resolves in the first global configuration managed object.

getGlobalParam
getGlobalParam(objectType: ManagedObjectTypeForConfig)

Retrieves whether an object should include the c8y_Global fragment in its declaration. If the fragment is set to false it should return false; If the fragment is set to true it should return true; If no fragment is available it should return true;

Parameters :
Name Type Optional Description
objectType ManagedObjectTypeForConfig No
  • The type of managed object.
Returns : Promise<boolean>

A promise that resolves into a boolean value indicating whether the global parameter should be set.

Properties

Protected cache
Type : Promise<IResultList<IManagedObject | undefined>>

results matching ""

    No results matching ""