task_24792 #7
|
@ -16,7 +16,7 @@ import java.util.stream.Collectors;
|
||||||
*/
|
*/
|
||||||
public enum ResourceGeoportalCodes {
|
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 id; // the code id
|
||||||
private String target_app; // the code value
|
private String target_app; // the code value
|
||||||
|
|
|
@ -257,7 +257,9 @@ public class GeoportalResolver {
|
||||||
|
|
||||||
if (resoruceGeoportalCodes == null) {
|
if (resoruceGeoportalCodes == null) {
|
||||||
LOG.error("Target application is null/malformed");
|
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()
|
List<String> targetApps = Arrays.asList(ResourceGeoportalCodes.values()).stream()
|
||||||
.map(ResourceGeoportalCodes::getTarget_app).collect(Collectors.toList());
|
.map(ResourceGeoportalCodes::getTarget_app).collect(Collectors.toList());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue