|
|
@ -113,11 +113,14 @@ public class WindowsDeviceManager implements DeviceManager {
|
|
|
|
MobileDeviceManagementUtil.getPlatformConfigPath(DeviceManagementConstants.
|
|
|
|
MobileDeviceManagementUtil.getPlatformConfigPath(DeviceManagementConstants.
|
|
|
|
MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS);
|
|
|
|
MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS);
|
|
|
|
resource = MobileDeviceManagementUtil.getRegistryResource(windowsTenantRegistryPath);
|
|
|
|
resource = MobileDeviceManagementUtil.getRegistryResource(windowsTenantRegistryPath);
|
|
|
|
JAXBContext context = JAXBContext.newInstance(TenantConfiguration.class);
|
|
|
|
if(resource != null){
|
|
|
|
Unmarshaller unmarshaller = context.createUnmarshaller();
|
|
|
|
JAXBContext context = JAXBContext.newInstance(TenantConfiguration.class);
|
|
|
|
return (TenantConfiguration) unmarshaller.unmarshal(
|
|
|
|
Unmarshaller unmarshaller = context.createUnmarshaller();
|
|
|
|
new StringReader(new String((byte[]) resource.getContent(), Charset
|
|
|
|
return (TenantConfiguration) unmarshaller.unmarshal(
|
|
|
|
.forName(MobilePluginConstants.CHARSET_UTF8))));
|
|
|
|
new StringReader(new String((byte[]) resource.getContent(), Charset.
|
|
|
|
|
|
|
|
forName(MobilePluginConstants.CHARSET_UTF8))));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
} catch (MobileDeviceMgtPluginException e) {
|
|
|
|
} catch (MobileDeviceMgtPluginException e) {
|
|
|
|
throw new DeviceManagementException(
|
|
|
|
throw new DeviceManagementException(
|
|
|
|
"Error occurred while retrieving the Registry instance : " + e.getMessage(), e);
|
|
|
|
"Error occurred while retrieving the Registry instance : " + e.getMessage(), e);
|
|
|
|