|
|
|
@ -155,8 +155,8 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
|
private boolean modifyEnrollWithMoreDetail(Document request) throws WindowsDeviceEnrolmentException,
|
|
|
|
|
WindowsOperationException {
|
|
|
|
|
|
|
|
|
|
String devMan;
|
|
|
|
|
String devMod;
|
|
|
|
|
String devMan = null;
|
|
|
|
|
String devMod = null;
|
|
|
|
|
boolean status = false;
|
|
|
|
|
String user;
|
|
|
|
|
SyncmlDocument syncmlDocument;
|
|
|
|
@ -165,8 +165,15 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
|
syncmlDocument = SyncmlParser.parseSyncmlPayload(request);
|
|
|
|
|
ReplaceTag replace = syncmlDocument.getBody().getReplace();
|
|
|
|
|
List<ItemTag> itemList = replace.getItems();
|
|
|
|
|
devMan = itemList.get(PluginConstants.SyncML.DEVICE_MAN_POSITION).getData();
|
|
|
|
|
devMod = itemList.get(PluginConstants.SyncML.DEVICE_MODEL_POSITION).getData();
|
|
|
|
|
for (ItemTag itemTag : itemList) {
|
|
|
|
|
String locURI = itemTag.getSource().getLocURI();
|
|
|
|
|
if (OperationCode.Info.MANUFACTURER.getCode().equals(locURI)) {
|
|
|
|
|
devMan = itemTag.getData();
|
|
|
|
|
}
|
|
|
|
|
if (OperationCode.Info.DEVICE_MODEL.getCode().equals(locURI)) {
|
|
|
|
|
devMod = itemTag.getData();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
user = syncmlDocument.getHeader().getSource().getLocName();
|
|
|
|
|
AuthenticationInfo authenticationInfo = new AuthenticationInfo();
|
|
|
|
|
authenticationInfo.setUsername(user);
|
|
|
|
|