Interface DeviceService
- All Known Implementing Classes:
DeviceServiceImpl
public interface DeviceService
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisableDevice(String deviceId) Disables the device with the given id.enableDevice(String id, String userId, String tenantId) Enable the device and update the user and tenant assignment.voidremoveDevice(String deviceId)
-
Method Details
-
createDeviceRegistration
DeviceRegistration createDeviceRegistration() -
createDeviceQuery
DeviceQuery createDeviceQuery() -
removeDevice
-
disableDevice
Disables the device with the given id. If no device exists with the given id, nothing is done- Parameters:
deviceId- the id of the device
-
enableDevice
Enable the device and update the user and tenant assignment. IfuserIdortenantIdthen the device user and tenant assignment won't be changed.- Parameters:
id- the id of the deviceuserId- the id of the user to which it should be assignedtenantId- the id of the tenant to which it should be assigned- Returns:
- the updated device
-