|
|
@ -32,7 +32,6 @@ public class Utils {
|
|
|
|
private static Map<String, String> locationColumnsMap = new HashMap<>();
|
|
|
|
private static Map<String, String> locationColumnsMap = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
static {
|
|
|
|
|
|
|
|
|
|
|
|
genericColumnsMap.put("deviceModel", "DEVICE_MODEL");
|
|
|
|
genericColumnsMap.put("deviceModel", "DEVICE_MODEL");
|
|
|
|
genericColumnsMap.put("vendor", "VENDOR");
|
|
|
|
genericColumnsMap.put("vendor", "VENDOR");
|
|
|
|
genericColumnsMap.put("osVersion", "OS_VERSION");
|
|
|
|
genericColumnsMap.put("osVersion", "OS_VERSION");
|
|
|
@ -105,23 +104,11 @@ public class Utils {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static boolean checkDeviceDetailsColumns(String str) {
|
|
|
|
public static boolean checkDeviceDetailsColumns(String str) {
|
|
|
|
if (genericColumnsMap.containsKey(str)) {
|
|
|
|
return genericColumnsMap.containsKey(str) || genericColumnsMap.containsValue(str);
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (genericColumnsMap.containsValue(str)) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static boolean checkDeviceLocationColumns(String str) {
|
|
|
|
public static boolean checkDeviceLocationColumns(String str) {
|
|
|
|
if (locationColumnsMap.containsKey(str)) {
|
|
|
|
return locationColumnsMap.containsKey(str) || locationColumnsMap.containsValue(str);
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (locationColumnsMap.containsValue(str)) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static List<String> convertStringToList(String str) {
|
|
|
|
public static List<String> convertStringToList(String str) {
|
|
|
|