|
|
@ -144,7 +144,9 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|
|
|
this.modifyEnrollment(device);
|
|
|
|
this.modifyEnrollment(device);
|
|
|
|
status = true;
|
|
|
|
status = true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.setStatus(deviceIdentifier, existingEnrolmentInfo.getOwner(), EnrolmentInfo.Status.INACTIVE);
|
|
|
|
if (!EnrolmentInfo.Status.REMOVED.equals(existingEnrolmentInfo.getStatus())) {
|
|
|
|
|
|
|
|
this.setStatus(deviceIdentifier, existingEnrolmentInfo.getOwner(), EnrolmentInfo.Status.INACTIVE);
|
|
|
|
|
|
|
|
}
|
|
|
|
int enrolmentId;
|
|
|
|
int enrolmentId;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
DeviceManagementDAOFactory.beginTransaction();
|
|
|
|
DeviceManagementDAOFactory.beginTransaction();
|
|
|
|