diff --git a/pom.xml b/pom.xml index 1f13a7d..8cfc8c3 100644 --- a/pom.xml +++ b/pom.xml @@ -156,6 +156,13 @@ slf4j-api + + + org.gcube.portlets.widgets + session-checker + LATEST + + diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java index 45727e6..5d19b70 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java @@ -3,6 +3,7 @@ package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client; import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client.view.CKanLeaveFrame; import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client.view.GCubeCkanDataCatalogPanel; +import org.gcube.portlets.widgets.sessionchecker.client.CheckSession; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; @@ -34,6 +35,9 @@ public class GCubeCkanDataCatalog implements EntryPoint { * This is the entry point method. */ public void onModuleLoad() { + + //polling for session expired check + CheckSession.getInstance().startPolling(); Window.addWindowClosingHandler(new Window.ClosingHandler() { diff --git a/src/main/resources/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/GCubeCkanDataCatalog.gwt.xml b/src/main/resources/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/GCubeCkanDataCatalog.gwt.xml index 8027926..edaee34 100644 --- a/src/main/resources/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/GCubeCkanDataCatalog.gwt.xml +++ b/src/main/resources/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/GCubeCkanDataCatalog.gwt.xml @@ -21,6 +21,8 @@ + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 973b10a..6dee428 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -34,13 +34,16 @@ org.gcube.portlets.gcubeckan.gcubeckandatacatalog.server.CkanLogout + + checkServlet + org.gcube.portlets.widgets.sessionchecker.server.SessionCheckerServiceImpl + ckanpublisherservices org.gcube.portlets.widgets.ckandatapublisherwidget.server.CKANPublisherServicesImpl - gcubeckandatacatalogservice /gCubeCkanDataCatalog/ckandatacatalogue @@ -56,7 +59,10 @@ /gCubeCkanDataCatalog/gcubeckanlogout - + + checkServlet + /gCubeCkanDataCatalog/checksession +