File

assets-navigator/asset-node.service.ts

Index

Properties
Methods

Constructor

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

Methods

createAssetNode
createAssetNode(config)
Parameters :
Name Optional
config No
Returns : any
createChildNode
createChildNode(managedObject)
Parameters :
Name Optional
managedObject 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()
Returns : any
getDeviceChildren
getDeviceChildren(moId: string, extraFilter: object)
Parameters :
Name Type Optional Default value
moId string No
extraFilter object No {}
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)
Parameters :
Name Type Optional Default value
moId string No
extraFilter object No {}
Returns : any
getRootNodes
getRootNodes(customFilter?: any)
Parameters :
Name Type Optional
customFilter any Yes
Returns : Promise<any>
groupQueryFilter
groupQueryFilter(moId: string)
Parameters :
Name Type Optional
moId string No
Returns : string
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
alert: AlertService
Type : AlertService
Public apiService
apiService: ApiService
Type : ApiService
draggedData
draggedData: AssetNode
Type : AssetNode
firstUrl
firstUrl:
Default value : true
Public groups
groups: DeviceGroupService
Type : DeviceGroupService
Public inventory
inventory: InventoryService
Type : InventoryService
Public modal
modal: ModalService
Type : ModalService
Public moduleConfig
moduleConfig: AssetNavigatorConfig
Type : AssetNavigatorConfig
Decorators :
@Optional()
@Inject(ASSET_NAVIGATOR_CONFIG)
Protected PAGE_SIZE
PAGE_SIZE: number
Type : number
Default value : 20
queriesUtil
queriesUtil: QueriesUtil
Type : QueriesUtil
rootNode
rootNode: AssetNode
Type : AssetNode

result-matching ""

    No results matching ""