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:
parent
806e5b5638
commit
13efc7d3a8
|
@ -54,21 +54,6 @@ public class GenericUtils {
|
||||||
return null;
|
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
|
* First check to retrieve the token, else create it
|
||||||
* @param username
|
* @param username
|
||||||
|
|
|
@ -281,19 +281,4 @@ public class WorkspaceUtils {
|
||||||
return resources;
|
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());
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue