sub-assets/sub-assets.service.ts
constructor(translateService: TranslateService, inventoryService: InventoryService, appState: AppStateService, user: UserService, assetNodeService: AssetNodeService, smartGroupsService: SmartGroupsService, smartRulesService: SmartRulesService, alertService: AlertService, permissionsService: Permissions, modal: ModalService, assetTypes: AssetTypesService, userPreferencesService: UserPreferencesService, gainsightService?: GainsightService)
|
||||||||||||||||||||||||||||||||||||||||||
Parameters :
|
Protected buildCombinedRootQueryFilter | ||||||
buildCombinedRootQueryFilter(columns, pagination)
|
||||||
Parameters :
Returns :
any
|
Async canAssignDevice | ||||||
canAssignDevice(group: IManagedObject)
|
||||||
Parameters :
Returns :
Promise<boolean>
|
canCreateGroup |
canCreateGroup()
|
Returns :
boolean
|
canDeleteSmartGroup |
canDeleteSmartGroup()
|
Returns :
boolean
|
Async canEditGroup | ||||||
canEditGroup(group: IManagedObject)
|
||||||
Parameters :
Returns :
Promise<boolean>
|
canEditSmartGroup |
canEditSmartGroup()
|
Returns :
boolean
|
Async deleteAsset | ||||||||||||||||
deleteAsset(asset: IManagedObject, parentRef: IManagedObject, params: object)
|
||||||||||||||||
Parameters :
Returns :
any
|
Protected Async getAssetsStatistics | |||||||||
getAssetsStatistics(parentReference: IManagedObject, filters: object)
|
|||||||||
Parameters :
Returns :
Promise<number>
|
Async getCount | ||||||||||||||||||||
getCount(columns: DeviceGridColumn[], pagination: Pagination, parentReference: IManagedObject, baseQuery: any)
|
||||||||||||||||||||
Parameters :
Returns :
Promise<number>
|
Async getCustomProperties | ||||||
getCustomProperties(group: IManagedObject)
|
||||||
Parameters :
Returns :
Promise<IManagedObject[]>
|
Async getData | ||||||||||||||||||||
getData(columns: DeviceGridColumn[], pagination: Pagination, parentReference: IManagedObject, baseQuery: any)
|
||||||||||||||||||||
Parameters :
Returns :
unknown
|
getDefaultActionControls |
getDefaultActionControls()
|
Returns :
ActionControl[]
|
getDefaultBulkActionControls |
getDefaultBulkActionControls()
|
Returns :
BulkActionControl[]
|
getDefaultColumns |
getDefaultColumns(filterable: boolean, sortable: boolean)
|
Returns :
DeviceGridColumn[]
|
getDefaultPagination |
getDefaultPagination()
|
Returns :
Pagination
|
getTotal | ||||||||||||
getTotal(parentReference: IManagedObject, baseQuery: any)
|
||||||||||||
Parameters :
Returns :
Promise<number>
|
isDevice | ||||||
isDevice(asset: IManagedObject)
|
||||||
Parameters :
Returns :
boolean
|
isSmartGroup | ||||||
isSmartGroup(group: IManagedObject)
|
||||||
Parameters :
Returns :
boolean
|
isUsingInventoryRoles |
isUsingInventoryRoles()
|
Returns :
boolean
|
shouldShowWithDeviceUserCheckbox | ||||||
shouldShowWithDeviceUserCheckbox(asset: IManagedObject)
|
||||||
Parameters :
Returns :
boolean
|
Async unassignAsset | |||||||||
unassignAsset(asset: IManagedObject, parentRef: IManagedObject)
|
|||||||||
Parameters :
Returns :
any
|
Protected applyConfigToColumns | ||||||||||||
applyConfigToColumns(config: GridConfig, columns: Column[], storageKey?: string)
|
||||||||||||
Parameters :
Returns :
Column[]
|
clearConfig | ||||||||
clearConfig(key: string)
|
||||||||
Parameters :
Returns :
void
|
Async delete | ||||||
delete(device: IManagedObject)
|
||||||
Parameters :
Returns :
Promise<void>
|
getAlarmsHref | ||||||
getAlarmsHref(device: IManagedObject)
|
||||||
Parameters :
Returns :
string
|
Async getChildDeviceData | ||||||||||||||||||||||||
getChildDeviceData(columns: DeviceGridColumn[], pagination: Pagination, query: any, withChildren: boolean, id: string)
|
||||||||||||||||||||||||
Parameters :
Returns :
unknown
|
getChildDeviceGridColumns |
getChildDeviceGridColumns()
|
Returns :
DeviceGridColumn[]
|
getConfig | ||||||||
Use getConfig$(key: string): Observable |
||||||||
getConfig(key: string)
|
||||||||
Parameters :
Returns :
GridConfig
|
getConfig$ | ||||||||
getConfig$(key: string)
|
||||||||
Decorators :
@mapLegacyGridConfiguration()
|
||||||||
Parameters :
Returns :
Observable<GridConfig>
|
Async getCountChildDevices | ||||||||||||||||||||
getCountChildDevices(columns: DeviceGridColumn[], pagination: Pagination, query: any, id: string)
|
||||||||||||||||||||
Parameters :
Returns :
unknown
|
getDefaultHeaderActionControls |
getDefaultHeaderActionControls()
|
Returns :
HeaderActionControl[]
|
getDeviceQueryString | |||||||||
getDeviceQueryString(columns: DeviceGridColumn[], query: any)
|
|||||||||
Parameters :
Returns :
string
|
getHref | ||||||||||||
getHref(groupOrDevice: IManagedObject, prefix: string)
|
||||||||||||
Parameters :
Returns :
string
|
getInfiniteScrollPagination |
getInfiniteScrollPagination()
|
Returns :
Pagination
|
getModel | ||||||
getModel(device: IManagedObject)
|
||||||
Parameters :
Returns :
string
|
getParentsNames | |||||||||
getParentsNames(device: IManagedObject, featuredParentId?: string | number)
|
|||||||||
Parameters :
Returns :
string
|
getProperName | ||||||
getProperName(device: IManagedObject)
|
||||||
Parameters :
Returns :
string
|
getQueryObj | ||||||||||||
getQueryObj(columns: DeviceGridColumn[], defaultFilter: object)
|
||||||||||||
Parameters :
Returns :
any
|
getSerialNumber | ||||||
getSerialNumber(device: IManagedObject)
|
||||||
Parameters :
Returns :
string
|
Async getTotalChildDevices |
getTotalChildDevices(query: any, id: string)
|
Returns :
Promise<number>
|
getUserConfiguredColumns |
Use getUserConfiguredColumns$(Column[] | Observable |
getUserConfiguredColumns(columns: Column[], storageKey?: string)
|
Returns :
{}
|
getUserConfiguredColumns$ | |||||||||
getUserConfiguredColumns$(columns: Column[] | Observable<Column[]>, storageKey?: string)
|
|||||||||
Parameters :
Returns :
any
|
saveConfig | ||||||||||||
Use saveConfig$(config: GridConfig, key: string): Promise |
||||||||||||
saveConfig(config: GridConfig, key: string)
|
||||||||||||
Parameters :
Returns :
void
|
saveConfig$ | ||||||||||||
saveConfig$(config: GridConfig, key: string)
|
||||||||||||
Parameters :
Returns :
Observable<GridConfig>
|
Protected GRID_CONFIG_DEFAULT_STORAGE_KEY |
Type : string
|
Default value : 'sub-assets-grid-config'
|
queriesUtil |
Type : QueriesUtil
|
uiOnlyCountersUpdate |
Default value : new BehaviorSubject(null)
|
Protected DEFAULT_PAGE_SIZE |
Type : number
|
Default value : 20
|