From 21275278ed42f96be4eaecffb083de6621882b91 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Wed, 4 Sep 2013 14:34:31 +0000 Subject: [PATCH] management of session expired was updated git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@81056 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/workspace/client/view/tree/AsyncTreePanel.java | 2 ++ .../portlets/user/workspace/server/GWTWorkspaceServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/AsyncTreePanel.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/AsyncTreePanel.java index 537f37c..63ca55f 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/AsyncTreePanel.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/AsyncTreePanel.java @@ -46,6 +46,7 @@ import com.extjs.gxt.ui.client.widget.button.Button; import com.extjs.gxt.ui.client.widget.layout.FitLayout; import com.extjs.gxt.ui.client.widget.treepanel.TreePanel; import com.extjs.gxt.ui.client.widget.treepanel.TreePanel.TreeNode; +import com.google.gwt.core.client.GWT; import com.google.gwt.event.shared.HandlerManager; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.rpc.AsyncCallback; @@ -740,6 +741,7 @@ public class AsyncTreePanel extends LayoutContainer { public void onFailure(Throwable caught) { if(caught instanceof SessionExpiredException){ + GWT.log("Session expired"); eventBus.fireEvent(new SessionExpiredEvent()); return; } diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceServiceImpl.java b/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceServiceImpl.java index b10b385..adc134a 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceServiceImpl.java @@ -312,7 +312,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT } @Override - public List getFolderChildrenForFileGridById(String folderId) throws Exception { + public List getFolderChildrenForFileGridById(String folderId) throws Exception, SessionExpiredException { Workspace workspace;