File

sub-assets/sub-assets.service.ts

Extends

DataGridService

Index

Properties
Methods

Constructor

constructor(translateService: TranslateService, inventoryService: InventoryService, appState: AppStateService, user: UserService, assetNodeService: AssetNodeService, smartGroupsService: SmartGroupsService, smartRulesService: SmartRulesService, alertService: AlertService, permissionsService: Permissions, assetTypes: AssetTypesService, userPreferencesService: UserPreferencesService)
Parameters :
Name Type Optional
translateService TranslateService No
inventoryService InventoryService No
appState AppStateService No
user UserService No
assetNodeService AssetNodeService No
smartGroupsService SmartGroupsService No
smartRulesService SmartRulesService No
alertService AlertService No
permissionsService Permissions No
assetTypes AssetTypesService No
userPreferencesService UserPreferencesService No

Methods

Protected buildCombinedRootQueryFilter
buildCombinedRootQueryFilter(columns, pagination)
Parameters :
Name Optional
columns No
pagination No
Returns : any
Async canAssignDevice
canAssignDevice(group: IManagedObject)
Parameters :
Name Type Optional
group IManagedObject No
Returns : Promise<boolean>
canCreateGroup
canCreateGroup()
Returns : boolean
canDeleteSmartGroup
canDeleteSmartGroup()
Returns : boolean
Async canEditGroup
canEditGroup(group: IManagedObject)
Parameters :
Name Type Optional
group IManagedObject No
Returns : Promise<boolean>
canEditSmartGroup
canEditSmartGroup()
Returns : boolean
Async deleteAsset
deleteAsset(asset: IManagedObject, parentRef: IManagedObject, params: object)
Parameters :
Name Type Optional Default value
asset IManagedObject No
parentRef IManagedObject No
params object No {}
Returns : any
Protected Async getAssetsStatistics
getAssetsStatistics(parentReference: IManagedObject, filters: object)
Parameters :
Name Type Optional
parentReference IManagedObject No
filters object No
Returns : Promise<number>
getConfig
Use getConfig$(key: string): Observable instead.
getConfig(key: string)
Parameters :
Name Type Optional Default value
key string No this.GRID_CONFIG_DEFAULT_STORAGE_KEY
Returns : GridConfig
Async getCount
getCount(columns: Column[], pagination: Pagination, parentReference: IManagedObject, baseQuery: any)
Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
parentReference IManagedObject No
baseQuery any No {}
Returns : Promise<number>
Async getCustomProperties
getCustomProperties(group: IManagedObject)
Parameters :
Name Type Optional
group IManagedObject No
Returns : Promise<IManagedObject[]>
Async getData
getData(columns: Column[], pagination: Pagination, parentReference: IManagedObject, baseQuery: any)
Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
parentReference IManagedObject No
baseQuery any No {}
Returns : unknown
getDefaultActionControls
getDefaultActionControls()
Returns : ActionControl[]
getDefaultBulkActionControls
getDefaultBulkActionControls()
getDefaultColumns
getDefaultColumns(_filterable: boolean, _sortable: boolean)
Parameters :
Name Type Optional Default value
_filterable boolean No true
_sortable boolean No true
Returns : Column[]
getDefaultPagination
getDefaultPagination()
Returns : Pagination
getTotal
getTotal(parentReference: IManagedObject, baseQuery: any)
Parameters :
Name Type Optional Default value
parentReference IManagedObject No
baseQuery any No {}
Returns : Promise<number>
isDevice
isDevice(asset: IManagedObject)
Parameters :
Name Type Optional
asset IManagedObject No
Returns : boolean
isSmartGroup
isSmartGroup(group: IManagedObject)
Parameters :
Name Type Optional
group IManagedObject No
Returns : boolean
isUsingInventoryRoles
isUsingInventoryRoles()
Returns : boolean
saveConfig
Use saveConfig$(config: GridConfig, key: string): Promise instead.
saveConfig(config: GridConfig, key: string)
Parameters :
Name Type Optional Default value
config GridConfig No
key string No this.GRID_CONFIG_DEFAULT_STORAGE_KEY
Returns : void
shouldShowWithDeviceUserCheckbox
shouldShowWithDeviceUserCheckbox(asset: IManagedObject)
Parameters :
Name Type Optional
asset IManagedObject No
Returns : boolean
Async unassignAsset
unassignAsset(asset: IManagedObject, parentRef: IManagedObject)
Parameters :
Name Type Optional
asset IManagedObject No
parentRef IManagedObject No
Returns : any
applyConfigToColumns
applyConfigToColumns(config: GridConfig, columns: Column[], storageKey?: string)
Parameters :
Name Type Optional
config GridConfig No
columns Column[] No
storageKey string Yes
Returns : Column[]
clearConfig
clearConfig(key: string)
Parameters :
Name Type Optional
key string No
Returns : void
getConfig$
getConfig$(key: string)
Parameters :
Name Type Optional
key string No
getQueryObj
getQueryObj(columns: Column[], defaultFilter: object)
Parameters :
Name Type Optional Default value
columns Column[] No
defaultFilter object No {}
Returns : any
getUserConfiguredColumns
Use getUserConfiguredColumns$(Column[] | Observable, string) instead.
getUserConfiguredColumns(columns: Column[], storageKey?: string)
Parameters :
Name Type Optional
columns Column[] No
storageKey string Yes
Returns : {}
getUserConfiguredColumns$
getUserConfiguredColumns$(columns: Column[] | Observable<Column[]>, storageKey?: string)
Parameters :
Name Type Optional
columns Column[] | Observable<Column[]> No
storageKey string Yes
Returns : any
saveConfig$
saveConfig$(config: GridConfig, key: string)
Parameters :
Name Type Optional
config GridConfig No
key string No

Properties

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

results matching ""

    No results matching ""