core/common/group.service.ts
Properties |
Methods |
constructor(assetTypesRealtimeService: AssetTypesRealtimeService)
|
||||||
|
Parameters :
|
| getAssetPath | ||||||||
getAssetPath(mo: IManagedObject)
|
||||||||
|
Retrieves the path associated with a given managed object.
Parameters :
Returns :
AssetPath
The path associated with the managed object's type. |
| Async getIcon | ||||||||||||||||||||
getIcon(mo: IManagedObject, open: unknown, fallbackIcon?: string)
|
||||||||||||||||||||
|
Finds an icon based on the contents of a managed object. It takes into account factors such as type, and specific fragments.
Parameters :
Returns :
Promise<string>
Returns an icon. |
| isAnyGroup | ||||||||
isAnyGroup(mo: IManagedObject)
|
||||||||
|
Checks whether the object belongs to any type of group. Types of groups: group, dynamic group, data broker, data broker active.
Parameters :
Returns :
boolean
Returns true if the managed object belongs to the group category. |
| isAsset | ||||||||
isAsset(mo: IManagedObject)
|
||||||||
|
Checks whether a given managed object is an asset.
Parameters :
Returns :
boolean
Returns true if the managed object is an asset. |
| isDataBroker | ||||||||
isDataBroker(mo: IManagedObject)
|
||||||||
|
Checks whether a given managed object is a data broker.
Parameters :
Returns :
boolean
Returns true if the managed object is a data broker. |
| isDataBrokerActive | ||||||||
isDataBrokerActive(mo: IManagedObject)
|
||||||||
|
Checks whether a given managed object is a data broker active.
Parameters :
Returns :
boolean
Returns true if the managed object is a data broker active. |
| isDevice | ||||||||
isDevice(mo: IManagedObject)
|
||||||||
|
Checks whether a given managed object is a device.
Parameters :
Returns :
boolean
Returns true if the managed object is a device. |
| isDynamicGroup | ||||||||
isDynamicGroup(mo: IManagedObject)
|
||||||||
|
Checks whether a given managed object is a dynamic group.
Parameters :
Returns :
boolean
Returns true if the managed object is a dynamic group. |
| isGroup | ||||||||
isGroup(mo: IManagedObject)
|
||||||||
|
Checks whether a given managed object is a group.
Parameters :
Returns :
boolean
Returns true if the managed object is a group. |
| assetPaths |
Type : Map<AssetTypes | AssetPath>
|
Default value : new Map([
['group', ASSET_PATH.DEFAULT],
['dynamicGroup', ASSET_PATH.DEFAULT],
['asset', ASSET_PATH.DEFAULT],
['device', ASSET_PATH.DEVICE],
['other', ASSET_PATH.DEVICE]
])
|
|
A mapping of managed object types to their corresponding asset path. |
| dataBrokerSourceFragmentInactive |
Type : unknown
|
Default value : `_${GroupFragment.dataBrokerSourceFragment}`
|