mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixed issue in windowsUtil
This commit is contained in:
parent
69299b69e8
commit
4205ad18dd
@ -216,7 +216,7 @@ public class WindowsDeviceDAOImpl implements MobileDeviceDAO {
|
|||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
|
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
mobileDevice = WindowsUtils.loadMatchingMobileDevices(rs);
|
mobileDevice = WindowsUtils.loadMobileDevices(rs);
|
||||||
Map<String, String> propertyMap = new HashMap<>();
|
Map<String, String> propertyMap = new HashMap<>();
|
||||||
propertyMap.put(WindowsPluginConstants.CHANNEL_URI, rs.getString(WindowsPluginConstants.CHANNEL_URI));
|
propertyMap.put(WindowsPluginConstants.CHANNEL_URI, rs.getString(WindowsPluginConstants.CHANNEL_URI));
|
||||||
propertyMap.put(WindowsPluginConstants.DEVICE_INFO, rs.getString(WindowsPluginConstants.DEVICE_INFO));
|
propertyMap.put(WindowsPluginConstants.DEVICE_INFO, rs.getString(WindowsPluginConstants.DEVICE_INFO));
|
||||||
|
|||||||
@ -52,16 +52,4 @@ public class WindowsUtils {
|
|||||||
mobileDevice.setOsVersion(rs.getString(WindowsPluginConstants.LATITUDE));
|
mobileDevice.setOsVersion(rs.getString(WindowsPluginConstants.LATITUDE));
|
||||||
return mobileDevice;
|
return mobileDevice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MobileDevice loadMatchingMobileDevices(ResultSet rs) throws SQLException {
|
|
||||||
MobileDevice mobileDevice = new MobileDevice();
|
|
||||||
mobileDevice.setMobileDeviceId(rs.getString(WindowsPluginConstants.DEVICE_ID));
|
|
||||||
mobileDevice.setVendor(rs.getString(WindowsPluginConstants.IMEI));
|
|
||||||
mobileDevice.setLatitude(rs.getString(WindowsPluginConstants.IMSI));
|
|
||||||
mobileDevice.setLongitude(rs.getString(WindowsPluginConstants.OS_VERSION));
|
|
||||||
mobileDevice.setImei(rs.getString(WindowsPluginConstants.DEVICE_MODEL));
|
|
||||||
mobileDevice.setImsi(rs.getString(WindowsPluginConstants.VENDOR));
|
|
||||||
mobileDevice.setOsVersion(rs.getString(WindowsPluginConstants.LATITUDE));
|
|
||||||
return mobileDevice;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user