From 27d24dffaf428ba95a4a0958f96b69e30851e624 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Fri, 25 Nov 2016 15:30:38 +0000 Subject: [PATCH] Added basic constructor for PortalContextInfo git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@134836 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 6 ------ .../user/workspace/server/util/PortalContextInfo.java | 11 +++++++---- .../portlets/user/workspace/server/util/WsUtil.java | 8 -------- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index cecbcad..4a12f42 100644 --- a/pom.xml +++ b/pom.xml @@ -116,12 +116,6 @@ common-encryption - - org.gcube.dvos - usermanagement-core - provided - - org.gcube.portlets.user gcube-widgets diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/util/PortalContextInfo.java b/src/main/java/org/gcube/portlets/user/workspace/server/util/PortalContextInfo.java index bd3c054..359cc59 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/server/util/PortalContextInfo.java +++ b/src/main/java/org/gcube/portlets/user/workspace/server/util/PortalContextInfo.java @@ -28,6 +28,13 @@ public class PortalContextInfo implements Serializable{ private long currGroupId; + /** + * + */ + public PortalContextInfo() { + } + + /** * Instantiates a new portal context info. * @@ -52,8 +59,6 @@ public class PortalContextInfo implements Serializable{ } - - /** * @return the username */ @@ -62,8 +67,6 @@ public class PortalContextInfo implements Serializable{ return username; } - - /** * @return the userFullName */ diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/util/WsUtil.java b/src/main/java/org/gcube/portlets/user/workspace/server/util/WsUtil.java index d59305b..f90b8fc 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/server/util/WsUtil.java +++ b/src/main/java/org/gcube/portlets/user/workspace/server/util/WsUtil.java @@ -144,8 +144,6 @@ public class WsUtil { Workspace workspace = HomeLibrary.getUserWorkspace(info.getUsername()); return workspace; - - } @@ -244,10 +242,7 @@ public class WsUtil { notifProducer = new NotificationsProducer(httpServletRequest); session.setAttribute(NOTIFICATION_PRODUCER, notifProducer); } - return notifProducer; - - //return new NotificationsProducer(session, request); } @@ -263,8 +258,6 @@ public class WsUtil { return info.getUsername(); } - - /** * Checks if is vre. * @@ -285,7 +278,6 @@ public class WsUtil { } - /** * Gets the scope util filter. *