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:
parent
63f6964602
commit
42f4a1f22e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue