diff --git a/src/main/java/org/gcube/application/geoportalcommon/GNADataEntryConfigProfileReader.java b/src/main/java/org/gcube/application/geoportalcommon/GNADataEntryConfigProfileReader.java index 195c910..a3faaa4 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/GNADataEntryConfigProfileReader.java +++ b/src/main/java/org/gcube/application/geoportalcommon/GNADataEntryConfigProfileReader.java @@ -46,7 +46,7 @@ public class GNADataEntryConfigProfileReader { private static final String RESOURCE_PROFILE_BODY = "/Resource/Profile/Body"; public static final String SECONDARY_TYPE = "ApplicationProfile"; - public static final String GENERIC_RESOURCE_NAME = "GNA-DataEntry-Configs"; + public static final String GENERIC_RESOURCE_NAME = "Geoportal-DataEntry-Configs"; private static final String PATH_TO_PERMISSIONS_PATH = RESOURCE_PROFILE_BODY + "/permssions_for_role"; private static final String PATH_TO_ITEM_FIELDS_CONFIG = RESOURCE_PROFILE_BODY + "/item_fields_config"; diff --git a/src/main/java/org/gcube/application/geoportalcommon/GNADataViewerConfigProfileReader.java b/src/main/java/org/gcube/application/geoportalcommon/GNADataViewerConfigProfileReader.java index 70ea9c5..f4b986d 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/GNADataViewerConfigProfileReader.java +++ b/src/main/java/org/gcube/application/geoportalcommon/GNADataViewerConfigProfileReader.java @@ -45,7 +45,7 @@ public class GNADataViewerConfigProfileReader { * */ public static final String SECONDARY_TYPE = "ApplicationProfile"; - public static final String WORKSPACE_EXPLORER_APP_NAME = "GeoNa-Viewer-Profile"; + public static final String GENERIC_RESOURCE_NAME = "Geoportal-DataViewer-Configs"; private static final String PATH_TO_ITEM_FIELDS_CONFIG = RESOURCE_PROFILE_BODY + "/item_fields_config"; private static Logger LOG = LoggerFactory.getLogger(GNADataViewerConfigProfileReader.class); @@ -159,7 +159,7 @@ public class GNADataViewerConfigProfileReader { } catch (Exception e) { LOG.error("Error while trying to read the " + SECONDARY_TYPE + " with SecondaryType " - + WORKSPACE_EXPLORER_APP_NAME + " from scope " + scope, e); + + GENERIC_RESOURCE_NAME + " from scope " + scope, e); return null; } finally { diff --git a/src/test/java/org/gcube/application/TestGNACommon.java b/src/test/java/org/gcube/application/TestGNACommon.java index c613329..9664dff 100644 --- a/src/test/java/org/gcube/application/TestGNACommon.java +++ b/src/test/java/org/gcube/application/TestGNACommon.java @@ -28,7 +28,7 @@ public class TestGNACommon { private static String CONTEXT = "/gcube/devsec/devVRE"; private static String USERNAME = "francesco.mangiacrapa"; - @Before + //@Before public void init() { ScopeProvider.instance.set(CONTEXT); SecurityTokenProvider.instance.set(TOKEN); @@ -92,9 +92,9 @@ public class TestGNACommon { } - @Test + // @Test public void readGNDataEntryConfigsFromIS() throws Exception { - + Thread thread = new Thread() { public void run() { geoCommon(); @@ -106,11 +106,11 @@ public class TestGNACommon { geoCommon(); } }; - + thread.run(); thread2.run(); } - + private void geoCommon() { GeoportalCommon r = new GeoportalCommon(); try { @@ -139,8 +139,7 @@ public class TestGNACommon { GeoportalCommon r = new GeoportalCommon(); try { ScopeProvider.instance.set(CONTEXT); - GNADataViewerConfigProfile configurations = r - .readGNADataViewerConfig(null); + GNADataViewerConfigProfile configurations = r.readGNADataViewerConfig(null); System.out.println("Map layers are:"); System.out.println(configurations.getMapLayers());