diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs
new file mode 100644
index 0000000..04cad8c
--- /dev/null
+++ b/.settings/org.eclipse.wst.validation.prefs
@@ -0,0 +1,2 @@
+disabled=06target
+eclipse.preferences.version=1
diff --git a/pom.xml b/pom.xml
index 8d3bf60..bc871d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
org.gcube.portal
custom-portal-handler
- 1.2.1-SNAPSHOT
+ 1.3.0-SNAPSHOT
jar
Custom Portal Handler
@@ -32,15 +32,14 @@
- org.gcube.core
- gcf
- [1.4.0-SNAPSHOT, 2.0.0-SNAPSHOT)
- provided
+ org.gcube.common.portal
+ portal-manager
+ [0.1.0-SNAPSHOT, 1.0.0)
-
+
org.gcube.applicationsupportlayer
aslcore
- [3.2.0-SNAPSHOT, 4.0.0-SNAPSHOT)
+ [4.0.0-SNAPSHOT,5.0.0-SNAPSHOT)
provided
diff --git a/src/main/java/org/gcube/portal/custom/scopemanager/scopehelper/ScopeHelper.java b/src/main/java/org/gcube/portal/custom/scopemanager/scopehelper/ScopeHelper.java
index 575ac28..317bed6 100644
--- a/src/main/java/org/gcube/portal/custom/scopemanager/scopehelper/ScopeHelper.java
+++ b/src/main/java/org/gcube/portal/custom/scopemanager/scopehelper/ScopeHelper.java
@@ -10,7 +10,7 @@ import javax.portlet.RenderRequest;
import org.gcube.application.framework.core.session.SessionManager;
import org.gcube.application.framework.core.util.GenderType;
-import org.gcube.common.core.contexts.GHNContext;
+import org.gcube.common.portal.PortalContext;
import org.gcube.portal.custom.communitymanager.OrganizationsUtil;
import com.liferay.portal.kernel.exception.PortalException;
@@ -178,9 +178,6 @@ public class ScopeHelper {
* return the infrastructure name
*/
public static String getRootConfigFromGCore() {
- String toReturn = "";
- GHNContext ctx = GHNContext.getContext();
- toReturn = (String) ctx.getProperty(GHNContext.INFRASTRUCTURE_NAME, true);
- return toReturn;
+ return PortalContext.getConfiguration().getInfrastructureName();
}
}