minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129152 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
02ab17035d
commit
a1e25a6208
|
@ -229,6 +229,9 @@ public class CKanUtilsImpl implements CKanUtilsInterface{
|
|||
|
||||
// get the id of all the organizations
|
||||
List<String> organizationIds = getOrganizationsIds();
|
||||
|
||||
// we need to get orgs names
|
||||
CkanClient client = new CkanClient(CKAN_CATALOGUE_URL);
|
||||
|
||||
for (String orgId : organizationIds) {
|
||||
|
||||
|
@ -257,8 +260,10 @@ public class CKanUtilsImpl implements CKanUtilsInterface{
|
|||
}
|
||||
}
|
||||
|
||||
if(!rolesIntoOrg.isEmpty())
|
||||
toReturn.put(orgId, rolesIntoOrg);
|
||||
if(!rolesIntoOrg.isEmpty()){
|
||||
String orgName = client.getOrganization(orgId).getName();
|
||||
toReturn.put(orgName, rolesIntoOrg);
|
||||
}
|
||||
}
|
||||
}catch(Exception e){
|
||||
logger.error("Unable to analyze user's roles", e);
|
||||
|
|
Loading…
Reference in New Issue