core/common/global-config.service.ts
Properties |
|
Methods |
constructor(inventory: InventoryService)
|
||||||
Parameters :
|
Async getGlobalConfig | ||||||||
getGlobalConfig(fragmentType: string)
|
||||||||
Retrieves the global configuration for a specific fragment type.
Parameters :
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 :
Returns :
Promise<boolean>
A promise that resolves into a boolean value indicating whether the global parameter should be set. |
Protected cache |
Type : Promise<IResultList<IManagedObject | undefined>>
|