minor fixes

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129082 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-06-13 12:45:24 +00:00
parent ab63c6c83a
commit 7ffb33200e
1 changed files with 3 additions and 4 deletions

View File

@ -140,7 +140,7 @@ public class CKanUtilsImpl implements CKanUtilsInterface{
List<CkanOrganization> toReturn = new ArrayList<CkanOrganization>();
// get the CkanClient to retrieve the organization from the id
CkanClient client = new CkanClient("https://ckan-d-d4s.d4science.org");
CkanClient client = new CkanClient(CKAN_CATALOGUE_URL);
try{
// for each org id, check if the user is included
@ -263,11 +263,10 @@ public class CKanUtilsImpl implements CKanUtilsInterface{
while (rs.next()) {
toReturn.add(rs.getString("id"));
}
logger.debug("Organizations' ids retrieved");
}catch(Exception e){
logger.error("Unable to retrieve list of organization ids");
logger.error("Unable to retrieve list of organization ids", e);
}
logger.debug("Organizations' ids retrieved");
return toReturn;
}