the ckan connector needs the production root vo name organization as it is on ckan-d4s.d4science.org
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@130686 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0ea26bce58
commit
a1870c7d04
|
@ -85,10 +85,9 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem
|
||||||
logger.warn("I'm using root scope "+ CKanUtilsImpl.PRODUCTION_SCOPE_ROOT);
|
logger.warn("I'm using root scope "+ CKanUtilsImpl.PRODUCTION_SCOPE_ROOT);
|
||||||
instance = new CKanUtilsImpl(CKanUtilsImpl.PRODUCTION_SCOPE_ROOT);
|
instance = new CKanUtilsImpl(CKanUtilsImpl.PRODUCTION_SCOPE_ROOT);
|
||||||
}else{
|
}else{
|
||||||
if(discoverScope != null && !discoverScope.isEmpty())
|
String scopeInWhichDiscover = (discoverScope != null && !discoverScope.isEmpty()) ? discoverScope : currentScope;
|
||||||
instance = new CKanUtilsImpl(discoverScope);
|
logger.debug("Discovering ckan utils library into scope " + scopeInWhichDiscover);
|
||||||
else
|
instance = new CKanUtilsImpl(scopeInWhichDiscover);
|
||||||
instance = new CKanUtilsImpl(currentScope);
|
|
||||||
}
|
}
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
logger.error("Unable to retrieve ckan utils", e);
|
logger.error("Unable to retrieve ckan utils", e);
|
||||||
|
|
|
@ -61,6 +61,11 @@ public class UserUtil {
|
||||||
logger.info("List of VREs for "+userEMail+ " is/are: "+listOfGroups.size());
|
logger.info("List of VREs for "+userEMail+ " is/are: "+listOfGroups.size());
|
||||||
List<String> vreNames = new ArrayList<String>(listOfGroups.size());
|
List<String> vreNames = new ArrayList<String>(listOfGroups.size());
|
||||||
for (GCubeGroup gCubeGroup : listOfGroups) {
|
for (GCubeGroup gCubeGroup : listOfGroups) {
|
||||||
|
|
||||||
|
// TODO: why only the VRES??...however check for the production root vo
|
||||||
|
if(gCubeGroup.getGroupName().equals(CKanUtilsImpl.PRODUCTION_LIFERAY_ORGNAME_ROOT))
|
||||||
|
vreNames.add(CKanUtilsImpl.PRODUCTION_CKAN_ORGNAME_ROOT);
|
||||||
|
|
||||||
if(groupManager.isVRE(gCubeGroup.getGroupId())) //Is it a VRE?
|
if(groupManager.isVRE(gCubeGroup.getGroupId())) //Is it a VRE?
|
||||||
vreNames.add(gCubeGroup.getGroupName());
|
vreNames.add(gCubeGroup.getGroupName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue