(no commit message)
[utils] / security / impl / src / main / java / org / wamblee / usermgt / UserAdministrationImpl.java
index 5c3570f9df73b92bd05cd6b99e1e5f9b5171887b..6866d45416a6e93f9eb4b9abfff262d62ff14d66 100644 (file)
@@ -215,11 +215,9 @@ public class UserAdministrationImpl implements UserAdministration {
         }
 
         userValidator.validate(aUserName);
-        // we are modifying the user so we should re-insert it into the set
-        // after renaming it.
-        users.remove(aUser);
+  
         aUser.setName(aUserName);
-        users.add(aUser);
+        users.userModified(aUser);
     }
 
     /*
@@ -242,11 +240,9 @@ public class UserAdministrationImpl implements UserAdministration {
         }
 
         groupValidator.validate(aGroupName);
-        // we are renaming the group so we should re-insert it into the set
-        // after renaming it.
-        groups.remove(aGroup);
+      
         aGroup.setName(aGroupName);
-        groups.add(aGroup);
+        groups.groupModified(aGroup);
     }
 
     /*