diff --git a/pom.xml b/pom.xml index 837ce2a..1a34862 100644 --- a/pom.xml +++ b/pom.xml @@ -76,11 +76,6 @@ gwt-bootstrap compile - - org.gcube.portal - custom-portal-handler - provided - org.gcube.resources.discovery diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/portlet/GCubeCkanDataCatalogPortlet.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/portlet/GCubeCkanDataCatalogPortlet.java index 82b92f5..3fc7e66 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/portlet/GCubeCkanDataCatalogPortlet.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/portlet/GCubeCkanDataCatalogPortlet.java @@ -8,8 +8,6 @@ import javax.portlet.PortletRequestDispatcher; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; -import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper; - /** * The Class GCubeCkanDataCatalogPortlet. @@ -39,12 +37,6 @@ public class GCubeCkanDataCatalogPortlet extends GenericPortlet{ */ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { System.out.println("LOADING ********* FROM "+VIEW_JSP); - try { - ScopeHelper.setContext(request, ScopeHelper.USERNAME_ATTRIBUTE); // <-- Static method which sets the username in the session and the scope depending on the context automatically - } - catch (Exception e) { - System.out.println("Could not initialize portlet context"); - } PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(VIEW_JSP); rd.include(request,response); }