Updated Get resolve

This commit is contained in:
Francesco Mangiacrapa 2023-03-23 17:15:18 +01:00
parent b1e3dc5dbc
commit 28ce7ae589
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import java.util.stream.Collectors;
*/
public enum ResourceGeoportalCodes {
GEO("geo", "data-viewer", "Geoportal Viewer"), GEOV("geo-v", "data-viewer", "Geoportal Viewer");
GEO("geo", "geoportal-viewer", "Geoportal Viewer"), GEO_V("geo-v", "data-viewer", "Geoportal Viewer");
private String id; // the code id
private String target_app; // the code value

View File

@ -257,7 +257,9 @@ public class GeoportalResolver {
if (resoruceGeoportalCodes == null) {
LOG.error("Target application is null/malformed");
resoruceGeoportalCodes = ResourceGeoportalCodes.GEO;
LOG.info("Target application using default: "+resoruceGeoportalCodes);
}else {
List<String> targetApps = Arrays.asList(ResourceGeoportalCodes.values()).stream()
.map(ResourceGeoportalCodes::getTarget_app).collect(Collectors.toList());