File

core/search/inventory-search.service.ts

Index

Properties
Methods

Constructor

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

Methods

filterOnlyAssets
filterOnlyAssets(data: IManagedObject[])

Will return only valid assets (groups and devices) 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

Properties

Protected DEFAULT_PAGE_SIZE
Type : number
Default value : 50
DEVICE_FRAGMENT_TYPE
Type : string
Default value : 'c8y_IsDevice'
FRAGMENTS_FOR_NO_DEVICE
Type : []
Default value : [ 'c8y_Dashboard', 'c8y_Report', 'c8y_Kpi', 'c8y_ExportConfiguration', 'c8y_IsBinary', 'c8y_NoDevice', 'c8y_IsDeviceGroup', 'c8y_Group', 'com_cumulocity_model_smartrest_SmartRestTemplate', 'com_cumulocity_model_devicesimulator_SensorTemplate', '_attachments', 'c8y_IsDeviceType', 'c8y_objectmapping_ObjectMapping', 'c8y_IsAssetType' ]
TYPES_FOR_NO_DEVICE
Type : []
Default value : [ 'c8y_ConfigurationDump', 'c8y_Firmware', 'c8y_SmartRule', 'c8y_Software', 'impact_object_mapping', 'c8y_UserPreference', 'c8y_TenantPolicy', 'c8y_PrivateSmartRule', 'c8y_SmartRest2Template', 'c8y_JsonSchema', 'c8y_DeviceShellTemplate', 'c8y_DemoStatus', 'c8y_DataBroker', 'c8y_Application_', 'brandingVariables', 'c8y_DeviceSimulator', 'c8y_CertificateMetadata', 'lwm2m_post_registration', 'c8y_microservice_manifest_' ]

results matching ""

    No results matching ""