(no commit message)
[utils] / security / impl / src / main / java / org / wamblee / security / authorization / UserCondition.java
index 7f52e0d1958cb54937ad3a9a4e39dbba11aab841..af0feb041809d95b08c5f419f62396d8a2aefa48 100644 (file)
@@ -15,7 +15,7 @@
  */ 
 package org.wamblee.security.authorization;
 
-import org.wamblee.security.authentication.User;
+import org.wamblee.security.authentication.UserAdministration;
 
 /**
  * Condition used to match a user against a specified set of users.
@@ -23,6 +23,12 @@ import org.wamblee.security.authentication.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 +38,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