X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fimpl%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsecurity%2Fauthentication%2FUserSet.java;h=7e6f9721e69134bbd41003f6d91ece3e0f1a5ddf;hb=aa0df19349b7edbc4aedb150862c95fc5ce3910b;hp=90b3f8977b6075453594d5246b8b05d9d9968717;hpb=43995978f8779ea9fb686e8cb6f98516d8c2f2e5;p=utils diff --git a/security/impl/src/main/java/org/wamblee/security/authentication/UserSet.java b/security/impl/src/main/java/org/wamblee/security/authentication/UserSet.java index 90b3f897..7e6f9721 100644 --- a/security/impl/src/main/java/org/wamblee/security/authentication/UserSet.java +++ b/security/impl/src/main/java/org/wamblee/security/authentication/UserSet.java @@ -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(); }