changed logs
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@181853 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
65cb793cc1
commit
5ec98c7d48
|
@ -77,16 +77,18 @@ public class CatalogueRoleManager {
|
||||||
// root (so check into the root, the VOs and the VRES)
|
// root (so check into the root, the VOs and the VRES)
|
||||||
if(groupManager.isRootVO(currentGroupId)){
|
if(groupManager.isRootVO(currentGroupId)){
|
||||||
|
|
||||||
logger.info("The current scope is the Root Vo, so the list of organizations of the user " + username + " is " + groups);
|
logger.info("The current scope is the Root Vo, so the list of organizations of the user " + username + " has " + groups.size() + " group/s");
|
||||||
|
|
||||||
for (GCubeGroup gCubeGroup : groups) {
|
for (GCubeGroup gCubeGroup : groups) {
|
||||||
|
|
||||||
if(!groupManager.isVRE(gCubeGroup.getGroupId()))
|
if(!groupManager.isVRE(gCubeGroup.getGroupId()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// get the name of this group
|
// get the name of this group
|
||||||
String gCubeGroupName = gCubeGroup.getGroupName();
|
String gCubeGroupName = gCubeGroup.getGroupName();
|
||||||
|
|
||||||
|
logger.info("Cheking role of the user " + username + " in the VRE " + gCubeGroupName);
|
||||||
|
|
||||||
// get the role of the users in this group
|
// get the role of the users in this group
|
||||||
List<GCubeRole> roles = roleManager.listRolesByUserAndGroup(userid, groupManager.getGroupId(gCubeGroupName));
|
List<GCubeRole> roles = roleManager.listRolesByUserAndGroup(userid, groupManager.getGroupId(gCubeGroupName));
|
||||||
|
|
||||||
|
@ -98,6 +100,8 @@ public class CatalogueRoleManager {
|
||||||
correspondentRoleToCheck, groupManager, gcubeCkanDataCatalogServiceImpl, orgsInWhichAtLeastEditorRole);
|
correspondentRoleToCheck, groupManager, gcubeCkanDataCatalogServiceImpl, orgsInWhichAtLeastEditorRole);
|
||||||
|
|
||||||
toReturn = RolesCkanGroupOrOrg.getHigher(toReturn, correspondentRoleToCheck);
|
toReturn = RolesCkanGroupOrOrg.getHigher(toReturn, correspondentRoleToCheck);
|
||||||
|
|
||||||
|
logger.info("Found the role "+toReturn+" for " + username + " in the VRE " + gCubeGroupName);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue