File

core/search/inventory-search.service.ts

Index

Properties
Methods

Constructor

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

Methods

filterOnlyGroups
filterOnlyGroups(data: IManagedObject[])

Will return only valid group assets and filter out none useful inventories (e.g. c8y_JsonSchema).

Parameters :
Name Type Optional Description
data IManagedObject[] No

All managed objects that should be filtered.

Returns : IManagedObject[]
search
search(term: string, pagination: Pagination)

Returns the full-text search results.

Parameters :
Name Type Optional Default value Description
term string No

The search term.

pagination Pagination No { currentPage: 1, pageSize: this.DEFAULT_PAGE_SIZE }

The currently used pagination.

Returns : any
searchGroups
searchGroups(term: string, pagination: Pagination)

Returns group search results by name.

Parameters :
Name Type Optional Default value Description
term string No

The search term - name of group.

pagination Pagination No { currentPage: 1, pageSize: this.DEFAULT_PAGE_SIZE }

The currently used pagination.

Returns : any

Properties

Protected DEFAULT_PAGE_SIZE
Type : number
Default value : 50

results matching ""

    No results matching ""