org.apache.ftpserver.remote
Class UserManager

java.lang.Object
  extended by org.apache.ftpserver.remote.UserManager
All Implemented Interfaces:
Remote, UserManagerInterface

public class UserManager
extends Object
implements UserManagerInterface

This is user manager remote adapter class. This is used by remote admin GUI.

Author:
Rana Bhattacharyya

Constructor Summary
UserManager(UserManagerInterface userManager)
          Constructor - sets the actual user manager
 
Method Summary
 boolean authenticate(String login, String password)
          Authenticate user
 void delete(String userName)
          Delete the user from the system.
 boolean doesExist(String name)
          User existance check.
 String getAdminName()
          Get admin name
 List getAllUserNames()
          Get all user names in the system.
 User getUserByName(String name)
          Get user by name.
 UserManagerInterface getUserManager()
          Get the actual user manager
 void reload()
          Load the user data again
 void save(User user)
          Save the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManager

public UserManager(UserManagerInterface userManager)
            throws RemoteException
Constructor - sets the actual user manager

Throws:
RemoteException
Method Detail

getUserManager

public UserManagerInterface getUserManager()
Get the actual user manager


save

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

Specified by:
save in interface UserManagerInterface
Throws:
Exception

delete

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

Specified by:
delete in interface UserManagerInterface
Parameters:
name - name of the user to be deleted.
Throws:
Exception

getUserByName

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

Specified by:
getUserByName in interface UserManagerInterface

getAllUserNames

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

Specified by:
getAllUserNames in interface UserManagerInterface

doesExist

public boolean doesExist(String name)
User existance check.

Specified by:
doesExist in interface UserManagerInterface
Parameters:
name - user name

authenticate

public boolean authenticate(String login,
                            String password)
Authenticate user

Specified by:
authenticate in interface UserManagerInterface

reload

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

Specified by:
reload in interface UserManagerInterface
Throws:
Exception

getAdminName

public String getAdminName()
Get admin name

Specified by:
getAdminName in interface UserManagerInterface


Copyright © 2001-2012 Codehaus. All Rights Reserved.