org.apache.ftpserver.usermanager
Interface UserManagerInterface

All Known Implementing Classes:
AbstractUserManager

public interface UserManagerInterface

This is user manager interface. All the user manager classes implement this interface. If we want to add a new user manager, we have to implement this class.

Author:
Rana Bhattacharyya

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean authenticate(java.lang.String login, java.lang.String password)
          Authenticate user
 void delete(java.lang.String userName)
          Delete the user from the system.
 boolean doesExist(java.lang.String name)
          User existance check.
 java.lang.String getAdminName()
          Get admin user name
 java.util.List getAllUserNames()
          Get all user names in the system.
 User getUserByName(java.lang.String name)
          Get user by name.
 void reload()
          Load the user data again
 void save(User user)
          Save the user.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

save

public void save(User user)
          throws java.lang.Exception
Save the user. If a new user, create it else update the existing user.

Throws:
java.lang.Exception

delete

public void delete(java.lang.String userName)
            throws java.lang.Exception
Delete the user from the system.

Throws:
java.lang.Exception

getUserByName

public User getUserByName(java.lang.String name)
Get user by name.


getAllUserNames

public java.util.List getAllUserNames()
Get all user names in the system.


doesExist

public boolean doesExist(java.lang.String name)
User existance check.

Parameters:
name - user name

authenticate

public boolean authenticate(java.lang.String login,
                            java.lang.String password)
Authenticate user


reload

public void reload()
            throws java.lang.Exception
Load the user data again

Throws:
java.lang.Exception

getAdminName

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



Copyright © -2005 . All Rights Reserved.