From 13efc7d3a81c2f7336a506b23dafd61f52e944f7 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Fri, 23 Feb 2018 13:16:47 +0000 Subject: [PATCH] minor fix: removed useless commented code git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@164552 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../server/utils/GenericUtils.java | 15 --------------- .../server/utils/WorkspaceUtils.java | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/GenericUtils.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/GenericUtils.java index 2137363..548ddad 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/GenericUtils.java +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/GenericUtils.java @@ -54,21 +54,6 @@ public class GenericUtils { return null; } - /** - * Given the scope in the infrastructure the method retrieves the name of the ckan organization - * @return the ckan organization name for this scope - */ - public static String getOrganizationNameFromScope(String scope) throws Exception { - - if(scope != null){ - - GroupManager gm = new LiferayGroupManager(); - return gm.getGroup(gm.getGroupIdFromInfrastructureScope(scope)).getGroupName().toLowerCase(); - } - - return null; - } - /** * First check to retrieve the token, else create it * @param username diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/WorkspaceUtils.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/WorkspaceUtils.java index cddf90c..75188e8 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/WorkspaceUtils.java +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/WorkspaceUtils.java @@ -281,19 +281,4 @@ public class WorkspaceUtils { return resources; } - // public static void main(String[] args) throws Exception { - // - // ScopeProvider.instance.set(); - // SecurityTokenProvider.instance.set(); - // String path = "/Workspace/DataMiner"; - // Workspace ws = HomeLibrary - // .getHomeManagerFactory() - // .getHomeManager() - // .getHome() - // .getWorkspace(); - // WorkspaceItem miner = ws.getItemByPath(path); - // handleWorkspaceResources(miner.getId(), "costantino.perciante", new DatasetBean()); - // - // } - } \ No newline at end of file