now using the simplified user management interface.
[utils] / security / impl / src / main / java / org / wamblee / security / authorization / AuthorizationService.java
index c9e3de5d2c2d7dfb9aa7f04150980157edfe4c8c..bfbe0f8443ac3706fb68f6a341dbb9a0e7b8a799 100644 (file)
@@ -16,6 +16,7 @@
 package org.wamblee.security.authorization;
 
 import org.wamblee.security.authentication.UserAccessor;
+import org.wamblee.security.authentication.UserAdministration;
 
 /**
  * Service to determine if access to a certain resource is allowed.
@@ -92,5 +93,13 @@ public interface AuthorizationService {
      *            User accessor.
      */
     void setUserAccessor(UserAccessor aUserAccessor);
+    
+    /**
+     * Sets the user administration so that the authorization service can check 
+     * information for the the current user.
+     *  
+     * @param aUserAdmin User administration. 
+     */
+    void setUserAdministration(UserAdministration aUserAdmin); 
 
 }
\ No newline at end of file