Interface DeviceService
-
- All Known Implementing Classes:
DeviceServiceImpl
public interface DeviceService- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeviceQuerycreateDeviceQuery()DeviceRegistrationcreateDeviceRegistration()voiddisableDevice(String deviceId)Disables the device with the given id.DeviceenableDevice(String id, String userId, String tenantId)Enable the device and update the user and tenant assignment.voidremoveDevice(String deviceId)
-
-
-
Method Detail
-
createDeviceRegistration
DeviceRegistration createDeviceRegistration()
-
createDeviceQuery
DeviceQuery createDeviceQuery()
-
removeDevice
void removeDevice(String deviceId)
-
disableDevice
void disableDevice(String deviceId)
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
Device enableDevice(String id, String userId, String tenantId)
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
-
-