avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/usermanager AbstractUserManager.java
Date Mon, 01 Apr 2002 17:20:07 GMT
rana_b      02/04/01 09:20:07

  Modified:    ftpserver/src/java/org/apache/avalon/ftpserver/usermanager
                        AbstractUserManager.java
  Log:
  get admin name
  
  Revision  Changes    Path
  1.3       +17 -3     jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/usermanager/AbstractUserManager.java
  
  Index: AbstractUserManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/usermanager/AbstractUserManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractUserManager.java	10 Mar 2002 06:09:36 -0000	1.2
  +++ AbstractUserManager.java	1 Apr 2002 17:20:07 -0000	1.3
  @@ -45,7 +45,8 @@
       protected Configuration mConfig;
       protected BlockContext mBlockContext;
       protected ComponentManager mComponentManager;
  -
  +    protected String mstAdminName;
  +    
       /**
        * Set context object - first step.
        */
  @@ -80,7 +81,13 @@
        * Configure user manager - third step.
        */
       public void configure(Configuration config) throws ConfigurationException {
  -        mConfig = config;
  +        mConfig = config;       
  +       
  +        Configuration adminConf = mConfig.getChild("ftp-admin-name", false);        
  +        mstAdminName = "admin";
  +        if(adminConf != null) {
  +            mstAdminName = adminConf.getValue(mstAdminName);
  +        }
       }
           
       /**
  @@ -105,10 +112,17 @@
       }
   
       /**
  +     * Get admin name
  +     */
  +    public String getAdminName() {
  +        return mstAdminName;
  +    }
  +
  +    /**
        * Close user manager - dummy implementation.
        */
       public void dispose() {
           getLogger().info("Closing user manager...");
       }
  -
  +    
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message