public interface DeviceInventory extends DirectoryInventory, TagInventory, FilterInventory, EventSubscriptions, Provisioning
Modifier and Type | Interface and Description |
---|---|
static class |
DeviceInventory.Type |
Modifier and Type | Method and Description |
---|---|
CompletionStage<List<String>> |
definitions()
Deprecated.
|
default com.bosch.iot.dm.util.PageIterator<String> |
definitions(int pageSize)
Deprecated.
Use
VortoInventory.models(Options, int, com.bosch.iot.dm.vorto.Type...) instead.
Returns Vorto definitions referenced in device features the current caller has access rights for. |
CompletionStage<Void> |
delete(String deviceId)
Deletes the Device specified by the given identifier
|
CompletionStage<Device> |
device(String deviceId,
String... fields)
Returns the device identified by the given deviceId.
|
CompletionStage<List<Device>> |
devices(Filter filter)
Returns a list of devices matching the given filter.
|
PageIterator<Device> |
devices(Filter filter,
int pageSize)
Returns a list of devices matching the given filter grouped in pages.
|
CompletionStage<List<Device>> |
devices(List<String> fields,
String... deviceIds)
Returns a list of devices specified by the given identifiers.
|
CompletionStage<List<Device>> |
devices(String... deviceIds)
Returns a list of devices specified by the given identifiers.
|
CompletionStage<List<Device>> |
devices(String gatewayId,
Filter filter)
Returns a list of edge devices attached to the gateway identified by
gatewayId and matching the given filter. |
CompletionStage<Integer> |
devicesCount(Filter filter)
Returns the number of devices matching the given filter.
|
CompletionStage<Integer> |
devicesCount(String gatewayId,
Filter filter)
Returns the number of edge devices attached to the gateway identified by
gatewayId and matching the given filter. |
PageIterator<Directory> |
directories(Filter filter,
int pageSize)
Returns a list of directories matching the specified filter, divided into pages.
|
PageIterator<Directory> |
directories(int pageSize)
Returns a list of all directories, divided into pages.
|
CompletionStage<Feature> |
feature(String deviceId,
String featureId,
String... fields)
Returns the feature identified by the given featureId for the device with deviceId.
|
PageIterator<FilterEntry> |
filterEntries(Filter filter,
int pageSize)
Returns a list of filter entries matching the specified filter, divided into pages.
|
PageIterator<FilterEntry> |
filterEntries(int pageSize)
Returns a list of all filter entries, divided into pages.
|
CompletionStage<Gateway> |
gateway(String gatewayId,
String... fields)
Returns an already existing Gateway identified by the given gatewayId.
|
CompletionStage<List<Gateway>> |
gateways(Filter filter)
Returns a list of gateways matching the given filter.
|
PageIterator<Gateway> |
gateways(Filter filter,
int pageSize)
Returns a list of gateways matching the given filter grouped in pages.
|
CompletionStage<List<Gateway>> |
gateways(List<String> fields,
String... gatewayIds)
Returns a list of gateways specified by the given identifiers.
|
CompletionStage<List<Gateway>> |
gateways(String... gatewayIds)
Returns a list of gateways specified by the given identifiers.
|
CompletionStage<Integer> |
gatewaysCount(Filter filter)
Returns the number of gateways matching the given filter.
|
CompletionStage<Boolean> |
match(String deviceId,
String query)
Returns if the device identified by the given deviceId matches the given filter.
|
CompletionStage<Policy> |
policy(String policyId)
Returns an already existing Policy specified by the given identifier
|
PageIterator<Tag> |
tags(Filter filter,
int pageSize)
Returns a list of tags matching the specified filter, divided into pages.
|
PageIterator<Tag> |
tags(int pageSize)
Returns a list of all tags, divided into pages.
|
createDirectory, deleteDirectory, directoriesCount, directory, directoryEventSubscriptions, moveDevice, moveDirectory, root, subscribeForDirectoryEvents, subscribeForDirectoryEvents, unsubscribeForDirectoryEvents
createTag, deleteTag, subscribeForTagEvents, subscribeForTagEvents, tag, tagDevice, tagEventSubscriptions, tagsCount, unsubscribeForTagEvents, untagDevice
createFilterEntry, deleteFilterEntry, filterEntriesCount, filterEntry, filterEntryEventSubscriptions, subscribeForFilterEntryEvents, subscribeForFilterEntryEvents, unsubscribeForFilterEntryEvents
deviceEventSubscriptions, deviceStatusEventSubscriptions, featureEventSubscriptions, featurePropertyEventSubscriptions, liveMessagesSubscriptions, subscribeForDeviceEvents, subscribeForDeviceEvents, subscribeForDeviceOfflineEvents, subscribeForDeviceOfflineEvents, subscribeForDeviceOnlineEvents, subscribeForDeviceOnlineEvents, subscribeForDeviceStatusChangeEvents, subscribeForDeviceStatusChangeEvents, subscribeForFeatureEvents, subscribeForFeatureEvents, subscribeForFeaturePropertyEvents, subscribeForFeaturePropertyEvents, subscribeForLiveMessages, subscribeForLiveMessages, subscribeForUploadRequestEvents, subscribeForUploadRequestEvents, subscription, unsubscribeForDeviceEvents, unsubscribeForDeviceOfflineEvents, unsubscribeForDeviceOnlineEvents, unsubscribeForDeviceStatusChangeEvents, unsubscribeForFeatureEvents, unsubscribeForFeaturePropertyEvents, unsubscribeForLiveMessages, unsubscribeForUploadRequestEvents, uploadRequestEventSubscriptions
register, unregister
PageIterator<Gateway> gateways(Filter filter, int pageSize)
filter
- the filter the gateways to be returned to be matched againstpageSize
- the number of gateways returned within a pagePageIterator<Device> devices(Filter filter, int pageSize)
filter
- the filter the devices to be returned to be matched againstpageSize
- the number of devices returned within a pagePageIterator<Directory> directories(Filter filter, int pageSize)
DirectoryInventory
directories
in interface DirectoryInventory
filter
- the filter to match againstpageSize
- the page sizePageIterator
providing a list of directories matching the specified filter, divided into pagesPageIterator<Tag> tags(int pageSize)
TagInventory
tags
in interface TagInventory
pageSize
- the page sizePageIterator
providing a list of all tags, divided into pagesPageIterator<Tag> tags(Filter filter, int pageSize)
TagInventory
tags
in interface TagInventory
filter
- the filter to match againstpageSize
- the page sizePageIterator
providing a list of tags matching the specified filter, divided into pagesPageIterator<FilterEntry> filterEntries(int pageSize)
FilterInventory
filterEntries
in interface FilterInventory
pageSize
- the page sizePageIterator
providing a list of all filter entries, divided into pagesPageIterator<FilterEntry> filterEntries(Filter filter, int pageSize)
FilterInventory
filterEntries
in interface FilterInventory
filter
- the filter to match againstpageSize
- the page sizePageIterator
providing a list of filter entries matching the specified filter, divided into pagesPageIterator<Directory> directories(int pageSize)
DirectoryInventory
directories
in interface DirectoryInventory
pageSize
- the page sizePageIterator
providing a list of all directories, divided into pagesCompletionStage<List<Gateway>> gateways(Filter filter)
filter
- the filter the gateways to be returned to be matched againstCompletionStage<List<Device>> devices(Filter filter)
filter
- the filter the devices to be returned to be matched againstCompletionStage<List<Device>> devices(String gatewayId, Filter filter)
gatewayId
and matching the given filter.
The filter supports limit option and if not explicitly specified, a default count of 25 devices are returned. Maximum list size is 200.
The result contains only existing and readable devices.gatewayId
- the gateway ID the edge devices are attached tofilter
- the filter the devices to be returned to be matched againstCompletionStage<Integer> gatewaysCount(Filter filter)
filter
- the filter the gateways to be returned to be matched againstCompletionStage<Integer> devicesCount(Filter filter)
filter
- the filter the devices to be returned to be matched againstCompletionStage<Integer> devicesCount(String gatewayId, Filter filter)
gatewayId
and matching the given filter.
The filter supports limit option and if not explicitly specified, a default count of 25 devices are returned. Maximum list size is 200.
The result contains only existing and readable devices.gatewayId
- the gateway ID the edge devices are attached tofilter
- the filter the devices to be returned to be matched againstCompletionStage<List<Gateway>> gateways(String... gatewayIds)
gatewayIds
- the identifiers of the gateways to be retrieved.CompletionStage<List<Device>> devices(String... deviceIds)
deviceIds
- the identifiers of the devices to be retrieved.CompletionStage<List<Gateway>> gateways(List<String> fields, String... gatewayIds)
fields
- subset of fields on the gateways to be retrievedgatewayIds
- the identifiers of the gateways to be retrievedCompletionStage<List<Device>> devices(List<String> fields, String... deviceIds)
fields
- subset of fields on the devices to be retrieveddeviceIds
- the identifiers of the devices to be retrievedCompletionStage<Gateway> gateway(String gatewayId, String... fields)
gatewayId
- the identifier of the Gatewayfields
- subset of fields on the devices to be retrievedCompletionStage<Device> device(String deviceId, String... fields)
deviceId
- the identifier of the Devicefields
- subset of fields on the devices to be retrievedCompletionStage<Policy> policy(String policyId)
policyId
- the identifier of the Policy to getCompletionStage<Feature> feature(String deviceId, String featureId, String... fields)
deviceId
- the identifier of the DevicefeatureId
- the feature identifierfields
- subset of fields on the devices to be retrievedCompletionStage<Void> delete(String deviceId)
deviceId
- the identifier of the Device to be deletedCompletionStage<Boolean> match(String deviceId, String query)
deviceId
- the identifier of the Devicequery
- the query the device to matched againsttrue
if the device matches the rql query, false
otherwise@Deprecated default com.bosch.iot.dm.util.PageIterator<String> definitions(int pageSize)
VortoInventory.models(Options, int, com.bosch.iot.dm.vorto.Type...)
instead.
Returns Vorto definitions referenced in device features the current caller has access rights for.pageSize
- number of elements to be returned in a page@Deprecated CompletionStage<List<String>> definitions()
Copyright © 2022 Bosch.IO GmbH. All rights reserved.