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
This commit is contained in:
Costantino Perciante 2018-02-23 13:16:47 +00:00
parent 806e5b5638
commit 13efc7d3a8
2 changed files with 0 additions and 30 deletions

View File

@ -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

View File

@ -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());
//
// }
}