|
|
@ -325,10 +325,10 @@ public class SyncmlServiceImpl implements SyncmlService {
|
|
|
|
existingProperties.add(deviceModelProperty);
|
|
|
|
existingProperties.add(deviceModelProperty);
|
|
|
|
|
|
|
|
|
|
|
|
existingDevice.setProperties(existingProperties);
|
|
|
|
existingDevice.setProperties(existingProperties);
|
|
|
|
|
|
|
|
existingDevice.setName(deviceName);
|
|
|
|
existingDevice.setDeviceIdentifier(syncmlDocument.getHeader().getSource().getLocURI());
|
|
|
|
existingDevice.setDeviceIdentifier(syncmlDocument.getHeader().getSource().getLocURI());
|
|
|
|
existingDevice.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS);
|
|
|
|
existingDevice.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS);
|
|
|
|
status = WindowsAPIUtils.getDeviceManagementService().modifyEnrollment(existingDevice);
|
|
|
|
status = WindowsAPIUtils.getDeviceManagementService().modifyEnrollment(existingDevice);
|
|
|
|
existingDevice.setName(deviceName);
|
|
|
|
|
|
|
|
// call effective policy for the enrolling device.
|
|
|
|
// call effective policy for the enrolling device.
|
|
|
|
PolicyManagerService policyManagerService = WindowsAPIUtils.getPolicyManagerService();
|
|
|
|
PolicyManagerService policyManagerService = WindowsAPIUtils.getPolicyManagerService();
|
|
|
|
policyManagerService.getEffectivePolicy(deviceIdentifier);
|
|
|
|
policyManagerService.getEffectivePolicy(deviceIdentifier);
|
|
|
|