Author: dimuthul
Date: Sun Jan 20 20:48:12 2008
New Revision: 12554

Log:

AuthorizingRealmConfig should retain data.



Modified:
   
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealmConfig.java

Modified: 
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealmConfig.java
==============================================================================
--- 
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealmConfig.java
     (original)
+++ 
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/acl/realm/AuthorizingRealmConfig.java
     Sun Jan 20 20:48:12 2008
@@ -45,7 +45,13 @@
     }
 
     public AuthorizingRealmConfig(AuthorizingRealmConfig config) {
+        this.authenticatedUserName = new String(config
+                .getAuthenticatedUserName());
         this.realm = config.getRealm();
+        this.isCurrentUserEditable = config.isCurrentUserEditable();
+        this.isCurrentUserReadable = config.isCurrentUserReadable();
+        this.enableAdminBehavior = config.isEnableAdminBehavior();
+        this.adminRoleName = new String(config.getAdminRoleName());
     }
 
     public Realm getRealm() {
@@ -65,10 +71,12 @@
     }
 
     /**
-     * Users with Admin Role cannot be deleted, edited, read by other normal 
users.
-     * If a user has the Admin Role he will be authorized to do anything. 
-     * i.e. isUserAuthorized() method will return true to every 
resource/action.  
-     * Admin role users can be edited/deleted and read by other admin role 
users only.
+     * Users with Admin Role cannot be deleted, edited, read by other normal
+     * users. If a user has the Admin Role he will be authorized to do 
anything.
+     * i.e. isUserAuthorized() method will return true to every 
resource/action.
+     * Admin role users can be edited/deleted and read by other admin role 
users
+     * only.
+     * 
      * @param adminRoleName
      */
     public void setAdminRoleName(String adminRoleName) {

_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev

Reply via email to