assets-navigator/asset-node.service.ts
Properties |
|
Methods |
|
constructor()
|
canDropNode | ||||||||
canDropNode(dropOnRoot: boolean)
|
||||||||
Check if it is possible to drop a node after dragging.
Parameters :
Returns :
boolean
|
createAssetNode | ||||||
createAssetNode(config: Partial<AssetNode>)
|
||||||
Parameters :
Returns :
any
|
createChildNode | |||||||||
createChildNode(managedObject, config: Partial<AssetNode>)
|
|||||||||
Parameters :
Returns :
any
|
createDynamicGroupNode | ||||
createDynamicGroupNode(config)
|
||||
Parameters :
Returns :
any
|
Protected createFilter | ||||||||
createFilter(extraParams: any)
|
||||||||
Parameters :
Returns :
any
|
createRootNode | ||||||||
createRootNode(config: NavigatorNodeData)
|
||||||||
Parameters :
Returns :
AssetNode
|
expandAll | ||||||||||||
expandAll(node: AssetNode, ids: string[])
|
||||||||||||
Expands all the given ids recursively. Stops if it does not find any.
Parameters :
Returns :
void
|
Async expandNodesOnStart | ||||||||
expandNodesOnStart(snapshot: ActivatedRouteSnapshot)
|
||||||||
Expands the navigator nodes on first navigation.
Parameters :
Returns :
Promise<void>
|
getAllInventories | ||||||
getAllInventories(customFilter?: any)
|
||||||
Parameters :
Returns :
Promise<any>
|
getDeviceChildren | ||||||||||||||||||||
getDeviceChildren(moId: string, extraFilter: object, filterQuery: string, withChildren)
|
||||||||||||||||||||
Parameters :
Returns :
any
|
getDynamicGroupItems |
getDynamicGroupItems(groupQuery: string, filterObj: any)
|
Returns :
any
|
getGroupItems | ||||||||||||||||||||
getGroupItems(moId: string, extraFilter: object, withChildren, filterQuery: string)
|
||||||||||||||||||||
Parameters :
Returns :
any
|
getRootNodes | ||||||
getRootNodes(customFilter?: any)
|
||||||
Parameters :
Returns :
Promise<any>
|
getUnassignedDevices | ||||||||||||
getUnassignedDevices(withChildren, filterQuery: string)
|
||||||||||||
Parameters :
Returns :
any
|
getUnassignedDevicesQueryStr | ||||
getUnassignedDevicesQueryStr(filterQuery)
|
||||
Parameters :
Returns :
string
|
groupQueryFilter |
groupQueryFilter(moId: string, filterQuery?: string)
|
Returns :
string
|
icon | |||||||||
icon(mo: IManagedObject, open?: boolean)
|
|||||||||
Parameters :
Returns :
Promise<string>
|
isAnyGroup | ||||||
isAnyGroup(mo: IManagedObject)
|
||||||
Parameters :
Returns :
any
|
isAsset | ||||||
isAsset(mo: IManagedObject)
|
||||||
Parameters :
Returns :
any
|
isDataBroker | ||||||
isDataBroker(mo: IManagedObject)
|
||||||
Parameters :
Returns :
any
|
isDataBrokerActive | ||||||
isDataBrokerActive(mo: IManagedObject)
|
||||||
Parameters :
Returns :
any
|
isDevice | ||||||
isDevice(mo: IManagedObject)
|
||||||
Parameters :
Returns :
any
|
isDynamicGroup | ||||||
isDynamicGroup(mo: IManagedObject)
|
||||||
Parameters :
Returns :
any
|
isGroup | ||||||
isGroup(mo: IManagedObject)
|
||||||
Parameters :
Returns :
any
|
isNewManagedObjectRoot | ||||||||
isNewManagedObjectRoot(response: Partial
|
||||||||
Parameters :
Returns :
boolean
|
label | ||||||
label(mo: IManagedObject)
|
||||||
Parameters :
Returns :
string
|
navRootQueryFilter |
navRootQueryFilter()
|
onUpdate | |||
onUpdate(undefined)
|
|||
Parameters :
Returns :
any
|
preferBreadcrumb | ||||||||
preferBreadcrumb(parents: NavigatorNode[])
|
||||||||
There could be multiple breadcrumbs for devices, so we set a preferred one on click on a device.
Parameters :
Returns :
void
|
rootQueryFilter |
rootQueryFilter()
|
alert |
Default value : inject(AlertService)
|
apiService |
Default value : inject(ApiService)
|
Protected appState |
Default value : inject(AppStateService)
|
Protected breadcrumbService |
Default value : inject(BreadcrumbService)
|
Protected deviceGroupService |
Default value : inject(DeviceGroupService)
|
draggedData |
Type : AssetNode
|
firstUrl |
Default value : true
|
inventory |
Default value : inject(InventoryService)
|
modal |
Default value : inject(ModalService)
|
moduleConfig |
Type : AssetNavigatorConfig
|
Protected optionsService |
Default value : inject(OptionsService)
|
Protected PAGE_SIZE |
Type : number
|
Default value : 20
|
queriesUtil |
Type : QueriesUtil
|
rootNode |
Type : AssetNode
|
Protected router |
Default value : inject(Router)
|
translateService |
Default value : inject(TranslateService)
|
Protected user |
Default value : inject(UserService)
|