From 7bc879acf9583356bc2152ed85664ba615547aa5 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Tue, 11 Feb 2014 18:46:16 +0000 Subject: [PATCH] removed unused imports removed test case in WsUtil git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@91423 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/view/sharing/PanelPermission.java | 3 --- .../portlets/user/workspace/server/util/WsUtil.java | 6 +++--- .../portlets/user/workspace/PublicLinkTest.java | 1 - .../portlets/user/workspace/SearchTextTest.java | 12 ------------ .../user/workspace/SinglePublicLinkTest.java | 4 ---- 5 files changed, 3 insertions(+), 23 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/sharing/PanelPermission.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/sharing/PanelPermission.java index 970a051..69f9bc9 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/sharing/PanelPermission.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/sharing/PanelPermission.java @@ -5,9 +5,6 @@ import java.util.List; import org.gcube.portlets.user.workspace.shared.WorkspaceACL; import org.gcube.portlets.user.workspace.shared.WorkspaceACL.USER_TYPE; -import com.extjs.gxt.ui.client.event.BaseEvent; -import com.extjs.gxt.ui.client.event.Events; -import com.extjs.gxt.ui.client.event.Listener; import com.extjs.gxt.ui.client.widget.LayoutContainer; import com.extjs.gxt.ui.client.widget.form.Radio; import com.extjs.gxt.ui.client.widget.form.RadioGroup; 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 f15b561..2633b93 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 @@ -103,9 +103,9 @@ public class WsUtil { }else if(user.compareToIgnoreCase(TEST_USER)==0){ withoutPortal = true; - }else if(user.compareToIgnoreCase("francesco.mangiacrapa")==0){ - - withoutPortal = true; +// }else if(user.compareToIgnoreCase("francesco.mangiacrapa")==0){ +// +// withoutPortal = true; }else{ diff --git a/src/test/java/org/gcube/portlets/user/workspace/PublicLinkTest.java b/src/test/java/org/gcube/portlets/user/workspace/PublicLinkTest.java index fc99025..fdcbe43 100644 --- a/src/test/java/org/gcube/portlets/user/workspace/PublicLinkTest.java +++ b/src/test/java/org/gcube/portlets/user/workspace/PublicLinkTest.java @@ -19,7 +19,6 @@ import org.gcube.common.homelibrary.home.workspace.folder.items.ExternalPDFFile; import org.gcube.common.homelibrary.home.workspace.folder.items.gcube.ImageDocument; import org.gcube.common.scope.api.ScopeProvider; import org.gcube.common.scope.impl.ScopeBean; -import org.gcube.portlets.user.workspace.server.GWTWorkspaceServiceImpl; /** * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it diff --git a/src/test/java/org/gcube/portlets/user/workspace/SearchTextTest.java b/src/test/java/org/gcube/portlets/user/workspace/SearchTextTest.java index b7676ab..3f4d650 100644 --- a/src/test/java/org/gcube/portlets/user/workspace/SearchTextTest.java +++ b/src/test/java/org/gcube/portlets/user/workspace/SearchTextTest.java @@ -7,9 +7,6 @@ import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; -import java.util.List; - -import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.IOUtils; import org.apache.log4j.Logger; @@ -18,22 +15,13 @@ import org.gcube.common.homelibrary.home.exceptions.InternalErrorException; import org.gcube.common.homelibrary.home.workspace.Workspace; import org.gcube.common.homelibrary.home.workspace.WorkspaceFolder; import org.gcube.common.homelibrary.home.workspace.WorkspaceItem; -import org.gcube.common.homelibrary.home.workspace.WorkspaceItemType; -import org.gcube.common.homelibrary.home.workspace.folder.FolderItem; import org.gcube.common.homelibrary.home.workspace.folder.items.ExternalFile; -import org.gcube.common.homelibrary.home.workspace.search.SearchFolder; -import org.gcube.common.homelibrary.home.workspace.search.SearchFolderItem; -import org.gcube.common.homelibrary.home.workspace.search.SearchItem; import org.gcube.common.scope.api.ScopeProvider; import org.gcube.common.scope.impl.ScopeBean; import org.gcube.portlets.user.workspace.client.model.FileGridModel; import org.gcube.portlets.user.workspace.client.model.FolderModel; import org.gcube.portlets.user.workspace.server.GWTWorkspaceBuilder; import org.gcube.portlets.user.workspace.server.GWTWorkspaceServiceImpl; -import org.gcube.portlets.user.workspace.server.resolver.UriResolverReaderParameter; -import org.gcube.portlets.user.workspace.server.util.HttpRequestUtil; -import org.gcube.portlets.user.workspace.server.util.StringUtil; -import org.yaml.snakeyaml.reader.StreamReader; /** * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it diff --git a/src/test/java/org/gcube/portlets/user/workspace/SinglePublicLinkTest.java b/src/test/java/org/gcube/portlets/user/workspace/SinglePublicLinkTest.java index 68fe79e..bbae45b 100644 --- a/src/test/java/org/gcube/portlets/user/workspace/SinglePublicLinkTest.java +++ b/src/test/java/org/gcube/portlets/user/workspace/SinglePublicLinkTest.java @@ -3,13 +3,10 @@ */ package org.gcube.portlets.user.workspace; -import java.util.List; - import org.apache.log4j.Logger; import org.gcube.common.homelibrary.home.HomeLibrary; import org.gcube.common.homelibrary.home.exceptions.InternalErrorException; import org.gcube.common.homelibrary.home.workspace.Workspace; -import org.gcube.common.homelibrary.home.workspace.WorkspaceFolder; import org.gcube.common.homelibrary.home.workspace.WorkspaceItem; import org.gcube.common.homelibrary.home.workspace.WorkspaceItemType; import org.gcube.common.homelibrary.home.workspace.folder.FolderItem; @@ -20,7 +17,6 @@ import org.gcube.common.homelibrary.home.workspace.folder.items.gcube.ImageDocum import org.gcube.common.scope.api.ScopeProvider; import org.gcube.common.scope.impl.ScopeBean; import org.gcube.portlets.user.workspace.server.GWTWorkspaceBuilder; -import org.gcube.portlets.user.workspace.server.GWTWorkspaceServiceImpl; import org.gcube.portlets.user.workspace.server.resolver.UriResolverReaderParameter; import org.gcube.portlets.user.workspace.server.util.HttpRequestUtil; import org.gcube.portlets.user.workspace.server.util.StringUtil;