just added few debug logs

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@126081 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-03-23 09:13:49 +00:00
parent 63f6964602
commit 42f4a1f22e
1 changed files with 7 additions and 2 deletions

View File

@ -283,6 +283,7 @@ public class LiferayGroupManager implements GroupManager {
*/
@Override
public long getGroupIdFromInfrastructureScope(String scope) throws IllegalArgumentException, UserManagementSystemException, GroupRetrievalFault {
_log.debug("called getGroupIdFromInfrastructureScope on " + scope);
if (! scope.startsWith("/")) {
throw new IllegalArgumentException("Scope should start with '/' ->" + scope);
}
@ -310,6 +311,7 @@ public class LiferayGroupManager implements GroupManager {
}
}
else if (splits.length == 4) {//is a VRE
_log.debug("is a VRE scope " + scope);
long parentGroupId = getGroupId(splits[2]);
List<Group> vres = null;
try {
@ -320,8 +322,11 @@ public class LiferayGroupManager implements GroupManager {
e.printStackTrace();
}
for (Group group : vres) {
if (group.getName().compareTo(splits[3])==0)
return group.getGroupId();
if (group.getName().compareTo(splits[3])==0) {
long groupId = group.getGroupId();
_log.debug("groupId found: " + groupId);
return groupId;
}
}
}
return -1;