Both source name and urlPath are now supported in deserialization

feature/23670
Luca Frosini 2 years ago
parent c4f314e383
commit bd0cde7838

@ -43,8 +43,12 @@ public enum Sources {
public static Sources onDeserialize(String sourceString) {
if(sourceString != null) {
for(Sources source : Sources.values()) {
if (source.urlPath.equalsIgnoreCase(sourceString.trim()))
if (source.urlPath.equalsIgnoreCase(sourceString.trim())) {
return source;
}
if (source.sourceName.equalsIgnoreCase(sourceString.trim())) {
return source;
}
}
}
return null;

Loading…
Cancel
Save