sub-assets/sub-assets.service.ts
Properties |
|
Methods |
|
constructor(translateService: TranslateService, inventoryService: InventoryService, appState: AppStateService, user: UserService, assetNodeService: AssetNodeService, smartGroupsService: SmartGroupsService, smartRulesService: SmartRulesService, alertService: AlertService, permissionsService: Permissions, assetTypes: AssetTypesService, userPreferencesService: UserPreferencesService)
|
||||||||||||||||||||||||||||||||||||
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>
|
getConfig | ||||||||
Use getConfig$(key: string): Observable |
||||||||
getConfig(key: string)
|
||||||||
Parameters :
Returns :
GridConfig
|
Async getCount | ||||||||||||||||||||
getCount(columns: Column[], pagination: Pagination, parentReference: IManagedObject, baseQuery: any)
|
||||||||||||||||||||
Parameters :
Returns :
Promise<number>
|
Async getCustomProperties | ||||||
getCustomProperties(group: IManagedObject)
|
||||||
Parameters :
Returns :
Promise<IManagedObject[]>
|
Async getData | ||||||||||||||||||||
getData(columns: Column[], pagination: Pagination, parentReference: IManagedObject, baseQuery: any)
|
||||||||||||||||||||
Parameters :
Returns :
unknown
|
getDefaultActionControls |
getDefaultActionControls()
|
Returns :
ActionControl[]
|
getDefaultBulkActionControls |
getDefaultBulkActionControls()
|
Returns :
BulkActionControl[]
|
getDefaultColumns |
getDefaultColumns(_filterable: boolean, _sortable: boolean)
|
Returns :
Column[]
|
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
|
saveConfig | ||||||||||||
Use saveConfig$(config: GridConfig, key: string): Promise |
||||||||||||
saveConfig(config: GridConfig, key: string)
|
||||||||||||
Parameters :
Returns :
void
|
shouldShowWithDeviceUserCheckbox | ||||||
shouldShowWithDeviceUserCheckbox(asset: IManagedObject)
|
||||||
Parameters :
Returns :
boolean
|
Async unassignAsset | |||||||||
unassignAsset(asset: IManagedObject, parentRef: IManagedObject)
|
|||||||||
Parameters :
Returns :
any
|
applyConfigToColumns | ||||||||||||
applyConfigToColumns(config: GridConfig, columns: Column[], storageKey?: string)
|
||||||||||||
Parameters :
Returns :
Column[]
|
clearConfig | ||||||
clearConfig(key: string)
|
||||||
Parameters :
Returns :
void
|
getConfig$ | ||||||
getConfig$(key: string)
|
||||||
Parameters :
Returns :
Observable<GridConfig>
|
getQueryObj |
getQueryObj(columns: Column[], defaultFilter: object)
|
Returns :
any
|
getUserConfiguredColumns |
Use getUserConfiguredColumns$(Column[] | Observable |
getUserConfiguredColumns(columns: Column[], storageKey?: string)
|
Returns :
{}
|
getUserConfiguredColumns$ | |||||||||
getUserConfiguredColumns$(columns: Column[] | Observable<Column[]>, storageKey?: string)
|
|||||||||
Parameters :
Returns :
any
|
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
|
Protected DEFAULT_PAGE_SIZE |
Type : number
|
Default value : 20
|