Author: bdaw
Date: 2010-01-19 10:44:34 -0500 (Tue, 19 Jan 2010)
New Revision: 1374
Modified:
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/GroupDAOImpl.java
Log:
- small bug
Modified:
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/GroupDAOImpl.java
===================================================================
---
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/GroupDAOImpl.java 2010-01-19
15:19:58 UTC (rev 1373)
+++
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/GroupDAOImpl.java 2010-01-19
15:44:34 UTC (rev 1374)
@@ -414,11 +414,22 @@
if (parents.size() == 0)
{
+
+ String id =
orgService.getConfiguration().getParentId(jbidGroup.getGroupType());
+
+ if (id != null &&
orgService.getConfiguration().isForceMembershipOfMappedTypes())
+ {
+ if (id.endsWith("/*"))
+ {
+ id = id.substring(0, id.length() - 2);
+ }
+
+ return id + jbidGroup.getName();
+ }
+
//As there is special root group this shouldn't happen:
throw new IllegalStateException("Group present that is not connected to the
root: " + jbidGroup.getName());
- // This group is at the root
- //return "/" + groupName;
}
String parentGroupId =
getGroupId(((org.picketlink.idm.api.Group)parents.iterator().next()));
Show replies by date