diff --git a/src/main/java/org/gcube/application/geoportalcommon/GeoportalCommon.java b/src/main/java/org/gcube/application/geoportalcommon/GeoportalCommon.java index f2c2843..fd33e20 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/GeoportalCommon.java +++ b/src/main/java/org/gcube/application/geoportalcommon/GeoportalCommon.java @@ -45,10 +45,11 @@ public class GeoportalCommon { * Gets the public links for. * * @param item the item + * @param alsoShort the also short * @return the public links for * @throws Exception the exception */ - public GeoNaItemRef getPublicLinksFor(GeoNaItemRef item) throws Exception { + public GeoNaItemRef getPublicLinksFor(GeoNaItemRef item, boolean alsoShortURL) throws Exception { LOG.info("getPublicLinksFor called for: " + item); try { @@ -72,7 +73,8 @@ public class GeoportalCommon { String shortUrl = link; try { - shortUrl = getShortUrl(link); + if(alsoShortURL) + shortUrl = getShortUrl(link); } catch (Exception e) { LOG.warn("Error on shortening the URL: ", e); } diff --git a/src/main/java/org/gcube/application/geoportalcommon/shared/products/model/ValidationReportDV.java b/src/main/java/org/gcube/application/geoportalcommon/shared/products/model/ValidationReportDV.java index 20476ce..dc486ca 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/shared/products/model/ValidationReportDV.java +++ b/src/main/java/org/gcube/application/geoportalcommon/shared/products/model/ValidationReportDV.java @@ -26,7 +26,7 @@ public class ValidationReportDV implements Serializable { * Sep 13, 2021 */ public static enum ValidationStatus { - PASSED("OK"), ERROR("Error"), WARNING("Warning"); + PASSED("Success"), ERROR("Error"), WARNING("Warning"); private String label;