File

assets-navigator/asset-node.service.ts

Index

Properties
Methods

Constructor

constructor(inventory: InventoryService, apiService: ApiService, modal: ModalService, alert: AlertService, breadcrumbService: BreadcrumbService, user: UserService, appState: AppStateService, optionsService: OptionsService, moduleConfig: AssetNavigatorConfig, deviceGroupService: DeviceGroupService)
Parameters :
Name Type Optional
inventory InventoryService No
apiService ApiService No
modal ModalService No
alert AlertService No
breadcrumbService BreadcrumbService No
user UserService No
appState AppStateService No
optionsService OptionsService No
moduleConfig AssetNavigatorConfig No
deviceGroupService DeviceGroupService No

Methods

createAssetNode
createAssetNode(config: Partial<AssetNode>)
Parameters :
Name Type Optional
config Partial<AssetNode> No
Returns : any
createChildNode
createChildNode(managedObject, config: Partial<AssetNode>)
Parameters :
Name Type Optional
managedObject No
config Partial<AssetNode> No
Returns : any
createDynamicGroupNode
createDynamicGroupNode(config)
Parameters :
Name Optional
config No
Returns : any
Protected createFilter
createFilter(extraParams: any)
Parameters :
Name Type Optional Default value
extraParams any No {}
Returns : any
createRootNode
createRootNode(config: NavigatorNodeData)
Parameters :
Name Type Optional Default value
config NavigatorNodeData No {}
Returns : AssetNode
getAllInventories
getAllInventories(customFilter?: any)
Parameters :
Name Type Optional
customFilter any Yes
Returns : Promise<any>
getDeviceChildren
getDeviceChildren(moId: string, extraFilter: object, filterQuery: string, withChildren)
Parameters :
Name Type Optional Default value
moId string No
extraFilter object No {}
filterQuery string No ''
withChildren No false
Returns : any
getDynamicGroupItems
getDynamicGroupItems(groupQuery: string, filterObj: any)
Parameters :
Name Type Optional Default value
groupQuery string No
filterObj any No {}
Returns : any
getGroupItems
getGroupItems(moId: string, extraFilter: object, withChildren, filterQuery: string)
Parameters :
Name Type Optional Default value
moId string No
extraFilter object No {}
withChildren No false
filterQuery string No ''
Returns : any
getRootNodes
getRootNodes(customFilter?: any)
Parameters :
Name Type Optional
customFilter any Yes
Returns : Promise<any>
getUnassignedDevices
getUnassignedDevices(withChildren, filterQuery: string)
Parameters :
Name Type Optional Default value
withChildren No false
filterQuery string No ''
Returns : any
getUnassignedDevicesQueryStr
getUnassignedDevicesQueryStr(filterQuery)
Parameters :
Name Optional
filterQuery No
Returns : string
groupQueryFilter
groupQueryFilter(moId: string, filterQuery?: string)
Parameters :
Name Type Optional
moId string No
filterQuery string Yes
Returns : string
icon
icon(mo: IManagedObject, open?: boolean)
Parameters :
Name Type Optional
mo IManagedObject No
open boolean Yes
Returns : any
isAnyGroup
isAnyGroup(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : any
isAsset
isAsset(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : any
isDataBroker
isDataBroker(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : any
isDataBrokerActive
isDataBrokerActive(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : any
isDevice
isDevice(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : any
isDynamicGroup
isDynamicGroup(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : any
isGroup
isGroup(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : any
isNewManagedObjectRoot
isNewManagedObjectRoot(response: Partial>)
Parameters :
Name Type Optional Default value
response Partial<IResult<IManagedObject>> No {}
Returns : boolean
navRootQueryFilter
navRootQueryFilter()
onUpdate
onUpdate(undefined)
Parameters :
Name Optional
No
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 :
Name Type Optional Description
parents NavigatorNode[] No

The parent nodes of the device to select the prefered one.

Returns : void
rootQueryFilter
rootQueryFilter()

Properties

Public alert
Type : AlertService
Public apiService
Type : ApiService
draggedData
Type : AssetNode
firstUrl
Default value : true
Public inventory
Type : InventoryService
Public modal
Type : ModalService
Public moduleConfig
Type : AssetNavigatorConfig
Decorators :
@Optional()
@Inject(ASSET_NAVIGATOR_CONFIG)
Protected PAGE_SIZE
Type : number
Default value : 20
queriesUtil
Type : QueriesUtil
rootNode
Type : AssetNode

results matching ""

    No results matching ""