now using the simplified user management interface.
[utils] / security / impl / src / main / java / org / wamblee / security / authentication / UserSet.java
index 90b3f8977b6075453594d5246b8b05d9d9968717..7e6f9721e69134bbd41003f6d91ece3e0f1a5ddf 100644 (file)
@@ -32,15 +32,13 @@ public interface UserSet {
      *            User name.
      * @param aPassword
      *            Password.
-     * @param aGroup
-     *            Group.
      * 
      * @return New user.
      * 
      * @throws UserMgtException
      *             In case the user cannot be created.
      */
-    User createUser(String aUsername, String aPassword, Group aGroup)
+    User createUser(String aUsername, String aPassword)
         throws UserMgtException;
 
     /**
@@ -83,9 +81,10 @@ public interface UserSet {
     boolean add(User aUser);
 
     /**
-     * Removes a user. If the user does not exist, nothing happens.
-     * 
-     * @param aUser
+     * Removes a user. 
+     *  
+     * @param aUser User to remove
+     * @return True iff user was removed.
      * 
      */
     boolean remove(User aUser);
@@ -111,4 +110,9 @@ public interface UserSet {
      * @return The number of users.
      */
     int size();
+    
+    /**
+     * Clears the user cache. 
+     */
+    void clearCache();
 }