|
|
@ -61,7 +61,6 @@ public class DeviceManagerImpl implements DeviceManager {
|
|
|
|
deviceDto.setStatus(Status.ACTIVE);
|
|
|
|
deviceDto.setStatus(Status.ACTIVE);
|
|
|
|
deviceDto.setDeviceTypeId(deviceTypeId);
|
|
|
|
deviceDto.setDeviceTypeId(deviceTypeId);
|
|
|
|
this.getDeviceDAO().addDevice(deviceDto);
|
|
|
|
this.getDeviceDAO().addDevice(deviceDto);
|
|
|
|
|
|
|
|
|
|
|
|
} catch (DeviceManagementDAOException e) {
|
|
|
|
} catch (DeviceManagementDAOException e) {
|
|
|
|
throw new DeviceManagementException("Error occurred while enrolling the device '" + device.getId() + "'",
|
|
|
|
throw new DeviceManagementException("Error occurred while enrolling the device '" + device.getId() + "'",
|
|
|
|
e);
|
|
|
|
e);
|
|
|
|