now using the simplified user management interface.
[utils] / security / impl / src / main / java / org / wamblee / security / authorization / UserCondition.java
index 7ce55cf96f8acf9bce93bc8a09d3e9af3e5a8315..76387276280ab29fda7c576ab746c823ad0e6ee6 100644 (file)
@@ -15,7 +15,9 @@
  */ 
 package org.wamblee.security.authorization;
 
-import org.wamblee.usermgt.User;
+import org.wamblee.security.authentication.User;
+import org.wamblee.security.authentication.UserAdminInitializer;
+import org.wamblee.security.authentication.UserAdministration;
 
 /**
  * Condition used to match a user against a specified set of users.
@@ -23,6 +25,12 @@ import org.wamblee.usermgt.User;
  * @author Erik Brakkee
  */
 public interface UserCondition {
+    
+    /**
+     * Sets the user administration object. 
+     * @param aAdmin User administration.
+     */
+    void setUserAdmin(UserAdministration aAdmin);
 
     /**
      * Determines if the condition matches.
@@ -32,6 +40,6 @@ public interface UserCondition {
      * 
      * @return True if the condition matches, false otherwise.
      */
-    public abstract boolean matches(User aUser);
+    boolean matches(String aUser);
 
 }
\ No newline at end of file