|
|
@ -126,11 +126,7 @@ public final class DeviceManagementDAOUtil {
|
|
|
|
deviceBO.setId(device.getId());
|
|
|
|
deviceBO.setId(device.getId());
|
|
|
|
deviceBO.setOwner(device.getOwnerId());
|
|
|
|
deviceBO.setOwner(device.getOwnerId());
|
|
|
|
deviceBO.setOwnership(device.getOwnerShip());
|
|
|
|
deviceBO.setOwnership(device.getOwnerShip());
|
|
|
|
if (device.getStatus() == Status.ACTIVE) {
|
|
|
|
deviceBO.setStatus(device.getStatus());
|
|
|
|
deviceBO.setStatus(true);
|
|
|
|
|
|
|
|
} else if (device.getStatus() == Status.INACTIVE) {
|
|
|
|
|
|
|
|
deviceBO.setStatus(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return deviceBO;
|
|
|
|
return deviceBO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -141,12 +137,7 @@ public final class DeviceManagementDAOUtil {
|
|
|
|
deviceBO.setName(device.getName());
|
|
|
|
deviceBO.setName(device.getName());
|
|
|
|
deviceBO.setDateOfEnrollment(device.getDateOfEnrolment());
|
|
|
|
deviceBO.setDateOfEnrollment(device.getDateOfEnrolment());
|
|
|
|
deviceBO.setDateOfLastUpdate(device.getDateOfLastUpdate());
|
|
|
|
deviceBO.setDateOfLastUpdate(device.getDateOfLastUpdate());
|
|
|
|
|
|
|
|
deviceBO.setStatus(device.getStatus());
|
|
|
|
if (!device.isStatus()) {
|
|
|
|
|
|
|
|
deviceBO.setStatus(Status.INACTIVE);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
deviceBO.setStatus(Status.ACTIVE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
deviceBO.setOwnerId(device.getOwner());
|
|
|
|
deviceBO.setOwnerId(device.getOwner());
|
|
|
|
deviceBO.setOwnerShip(device.getOwnership());
|
|
|
|
deviceBO.setOwnerShip(device.getOwnership());
|
|
|
|
deviceBO.setTenantId(DeviceManagementDAOUtil.getTenantId());
|
|
|
|
deviceBO.setTenantId(DeviceManagementDAOUtil.getTenantId());
|
|
|
|