|
|
@ -118,8 +118,8 @@ public class AndroidDeviceManager implements DeviceManager {
|
|
|
|
JAXBContext context = JAXBContext.newInstance(TenantConfiguration.class);
|
|
|
|
JAXBContext context = JAXBContext.newInstance(TenantConfiguration.class);
|
|
|
|
Unmarshaller unmarshaller = context.createUnmarshaller();
|
|
|
|
Unmarshaller unmarshaller = context.createUnmarshaller();
|
|
|
|
return (TenantConfiguration) unmarshaller.unmarshal(
|
|
|
|
return (TenantConfiguration) unmarshaller.unmarshal(
|
|
|
|
new StringReader(new String((byte[]) resource.getContent(), Charset
|
|
|
|
new StringReader(new String((byte[]) resource.getContent(), Charset.
|
|
|
|
.forName(MobilePluginConstants.CHARSET_UTF8))));
|
|
|
|
forName(MobilePluginConstants.CHARSET_UTF8))));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return new TenantConfiguration();
|
|
|
|
return new TenantConfiguration();
|
|
|
|
} catch (MobileDeviceMgtPluginException e) {
|
|
|
|
} catch (MobileDeviceMgtPluginException e) {
|
|
|
@ -288,8 +288,8 @@ public class AndroidDeviceManager implements DeviceManager {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public License getLicense(String languageCode) throws LicenseManagementException {
|
|
|
|
public License getLicense(String languageCode) throws LicenseManagementException {
|
|
|
|
return licenseManager
|
|
|
|
return licenseManager.
|
|
|
|
.getLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID, languageCode);
|
|
|
|
getLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID, languageCode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -320,8 +320,7 @@ public class AndroidDeviceManager implements DeviceManager {
|
|
|
|
"updating the details of Android device : " + device.getDeviceIdentifier());
|
|
|
|
"updating the details of Android device : " + device.getDeviceIdentifier());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
AndroidDAOFactory.beginTransaction();
|
|
|
|
AndroidDAOFactory.beginTransaction();
|
|
|
|
status = daoFactory.getMobileDeviceDAO()
|
|
|
|
status = daoFactory.getMobileDeviceDAO().updateMobileDevice(existingMobileDevice);
|
|
|
|
.updateMobileDevice(existingMobileDevice);
|
|
|
|
|
|
|
|
AndroidDAOFactory.commitTransaction();
|
|
|
|
AndroidDAOFactory.commitTransaction();
|
|
|
|
} catch (MobileDeviceManagementDAOException e) {
|
|
|
|
} catch (MobileDeviceManagementDAOException e) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|