File

files-repository/files-repository.service.ts

Index

Properties
Methods

Constructor

constructor(inventoryService: InventoryService)
Parameters :
Name Type Optional
inventoryService InventoryService No

Methods

getColumns
getColumns()
Returns : Column[]
Async getCount
getCount(columns: Column[], pagination: Pagination)

Returns the number of items matching current columns and pagination setup.

Parameters :
Name Type Optional
columns Column[] No
pagination Pagination No
Returns : unknown
Async getData
getData(columns: Column[], pagination: Pagination, searchText: string)

Returns data for current columns and pagination setup.

Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
searchText string No ''
Returns : unknown
getDeletableItemsIds
getDeletableItemsIds(selectedItemsIds: string[], dataFromDataGrid: Array)

Returns array with items id where item has not c8y_applications_storage fragment.

Parameters :
Name Type Optional
selectedItemsIds string[] No
dataFromDataGrid Array<any> No
Returns : string[]
getPagination
getPagination()
Returns : Pagination
Async getTotal
getTotal()

Returns the total number of items (with no filters based on columns setup).

Returns : Promise<number>
hasApplicationStorageFragment
hasApplicationStorageFragment(file: Row)
Parameters :
Name Type Optional
file Row No
Returns : boolean

Properties

baseQuery
Type : object
Default value : { __has: 'c8y_IsBinary' }
queriesUtil
Type : QueriesUtil

results matching ""

    No results matching ""