mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixing windows8.1 Device name issue
This commit is contained in:
parent
9571d782c8
commit
fc7d86801f
@ -287,7 +287,6 @@ public class SyncmlServiceImpl implements SyncmlService {
|
|||||||
vendor = itemList.get(PluginConstants.SyncML.VENDOR_POSITION).getData();
|
vendor = itemList.get(PluginConstants.SyncML.VENDOR_POSITION).getData();
|
||||||
devMod = itemList.get(PluginConstants.SyncML.MODEL_POSITION).getData();
|
devMod = itemList.get(PluginConstants.SyncML.MODEL_POSITION).getData();
|
||||||
macAddress = itemList.get(PluginConstants.SyncML.MAC_ADDRESS_POSITION).getData();
|
macAddress = itemList.get(PluginConstants.SyncML.MAC_ADDRESS_POSITION).getData();
|
||||||
resolution = itemList.get(PluginConstants.SyncML.RESOLUTION_POSITION).getData();
|
|
||||||
deviceName = itemList.get(PluginConstants.SyncML.DEVICE_NAME_POSITION).getData();
|
deviceName = itemList.get(PluginConstants.SyncML.DEVICE_NAME_POSITION).getData();
|
||||||
DeviceIdentifier deviceIdentifier = convertToDeviceIdentifierObject(syncmlDocument.
|
DeviceIdentifier deviceIdentifier = convertToDeviceIdentifierObject(syncmlDocument.
|
||||||
getHeader().getSource().getLocURI());
|
getHeader().getSource().getLocURI());
|
||||||
@ -320,11 +319,6 @@ public class SyncmlServiceImpl implements SyncmlService {
|
|||||||
macAddressProperty.setValue(macAddress);
|
macAddressProperty.setValue(macAddress);
|
||||||
existingProperties.add(macAddressProperty);
|
existingProperties.add(macAddressProperty);
|
||||||
|
|
||||||
Device.Property deviceNameProperty = new Device.Property();
|
|
||||||
deviceNameProperty.setName(PluginConstants.SyncML.DEVICE_NAME);
|
|
||||||
deviceNameProperty.setValue(deviceName);
|
|
||||||
existingProperties.add(deviceNameProperty);
|
|
||||||
|
|
||||||
Device.Property deviceModelProperty = new Device.Property();
|
Device.Property deviceModelProperty = new Device.Property();
|
||||||
deviceModelProperty.setName(PluginConstants.SyncML.MODEL);
|
deviceModelProperty.setName(PluginConstants.SyncML.MODEL);
|
||||||
deviceModelProperty.setValue(devMod);
|
deviceModelProperty.setValue(devMod);
|
||||||
@ -334,6 +328,7 @@ public class SyncmlServiceImpl implements SyncmlService {
|
|||||||
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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user