Interface DeviceService

  • All Known Implementing Classes:
    DeviceServiceImpl

    public interface DeviceService
    Author:
    Filip Hrisafov
    • Method Detail

      • 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. 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