|
|
@ -390,12 +390,10 @@ public class EnrollmentServiceImpl implements EnrollmentService {
|
|
|
|
deviceInfoProperties.setValue(windowsDevice.getWindowsType());
|
|
|
|
deviceInfoProperties.setValue(windowsDevice.getWindowsType());
|
|
|
|
String deviceInfo = gson.toJson(deviceInfoProperties);
|
|
|
|
String deviceInfo = gson.toJson(deviceInfoProperties);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Device.Property winDeviceType = new Device.Property();
|
|
|
|
Device.Property winDeviceType = new Device.Property();
|
|
|
|
winDeviceType.setName(PluginConstants.SyncML.DEVICE_INFO);
|
|
|
|
winDeviceType.setName(PluginConstants.SyncML.DEVICE_INFO);
|
|
|
|
winDeviceType.setValue(deviceInfo);
|
|
|
|
winDeviceType.setValue(deviceInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Device.Property> propertyList = new ArrayList<>();
|
|
|
|
List<Device.Property> propertyList = new ArrayList<>();
|
|
|
|
propertyList.add(OSVersionProperty);
|
|
|
|
propertyList.add(OSVersionProperty);
|
|
|
|
propertyList.add(IMSEIProperty);
|
|
|
|
propertyList.add(IMSEIProperty);
|
|
|
@ -407,7 +405,6 @@ public class EnrollmentServiceImpl implements EnrollmentService {
|
|
|
|
enrolmentInfo.setOwnership(EnrolmentInfo.OwnerShip.BYOD);
|
|
|
|
enrolmentInfo.setOwnership(EnrolmentInfo.OwnerShip.BYOD);
|
|
|
|
enrolmentInfo.setStatus(EnrolmentInfo.Status.ACTIVE);
|
|
|
|
enrolmentInfo.setStatus(EnrolmentInfo.Status.ACTIVE);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
generatedDevice.setEnrolmentInfo(enrolmentInfo);
|
|
|
|
generatedDevice.setEnrolmentInfo(enrolmentInfo);
|
|
|
|
generatedDevice.setDeviceIdentifier(windowsDevice.getDeviceId());
|
|
|
|
generatedDevice.setDeviceIdentifier(windowsDevice.getDeviceId());
|
|
|
|
generatedDevice.setProperties(propertyList);
|
|
|
|
generatedDevice.setProperties(propertyList);
|
|
|
|