- All Known Implementing Classes:
DeviceServiceImpl
public interface DeviceService
- Author:
- Filip Hrisafov
-
Method Summary
-
Method Details
-
-
-
void removeDevice(java.lang.String deviceId)
-
void disableDevice(java.lang.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
-
Device enableDevice(
java.lang.String id,
java.lang.String userId,
java.lang.String tenantId)
Enable the device and update the user and tenant assignment.
If userId
or tenantId
then the device user and tenant assignment won't be changed.
- Parameters:
id
- the id of the device
userId
- the id of the user to which it should be assigned
tenantId
- the id of the tenant to which it should be assigned
- Returns:
- the updated device