org.apache.ftpserver.usermanager
Class AbstractUserManager

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.ftpserver.usermanager.AbstractUserManager
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, UserManagerInterface
Direct Known Subclasses:
DbUserManager, LdapUserManager, PropertiesUserManager

public abstract class AbstractUserManager
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements UserManagerInterface, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable

Abstract user manager class.

Author:
Paul Hammant Paul_Hammant@yahoo.com

Field Summary
protected  org.apache.avalon.framework.configuration.Configuration mConfig
           
protected  java.lang.String mstAdminName
           
 
Fields inherited from interface org.apache.ftpserver.usermanager.UserManagerInterface
ROLE
 
Constructor Summary
AbstractUserManager()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration config)
          Configure user manager - third step.
 void contextualize(org.apache.avalon.framework.context.Context context)
          Set context object - first step.
 void dispose()
          Close user manager - dummy implementation.
 java.lang.String getAdminName()
          Get admin name
 java.lang.String getBaseDirectory()
          Get the basedir.
 org.apache.avalon.framework.configuration.Configuration getConfig()
          Get config object.
 void initialize()
          Initialize - fourth step.
 void reload()
          Reload user data - dummy implementation.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ftpserver.usermanager.UserManagerInterface
authenticate, delete, doesExist, getAllUserNames, getUserByName, save
 

Field Detail

mConfig

protected org.apache.avalon.framework.configuration.Configuration mConfig

mstAdminName

protected java.lang.String mstAdminName
Constructor Detail

AbstractUserManager

public AbstractUserManager()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Set context object - first step.

Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configure user manager - third step.

Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

getConfig

public org.apache.avalon.framework.configuration.Configuration getConfig()
Get config object.


getBaseDirectory

public java.lang.String getBaseDirectory()
Get the basedir.


initialize

public void initialize()
                throws java.lang.Exception
Initialize - fourth step.

Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception

reload

public void reload()
            throws java.lang.Exception
Reload user data - dummy implementation.

Specified by:
reload in interface UserManagerInterface
Throws:
java.lang.Exception

getAdminName

public java.lang.String getAdminName()
Get admin name

Specified by:
getAdminName in interface UserManagerInterface

dispose

public void dispose()
Close user manager - dummy implementation.

Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable


Copyright © -2005 . All Rights Reserved.