org.apache.ftpserver.remote.interfaces
Interface UserManagerInterface

All Superinterfaces:
Remote
All Known Implementing Classes:
UserManager

public interface UserManagerInterface
extends Remote

This is user manager remote interface. This is used by remote admin GUI.

Author:
Rana Bhattacharyya

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 user name
 List getAllUserNames()
          Get all user names in the system.
 User getUserByName(String name)
          Get user by name.
 void reload()
          Load the user data again
 void save(User user)
          Save the user.
 

Method Detail

save

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

Throws:
Exception

delete

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

Parameters:
name - name of the user to be deleted.
Throws:
Exception

getUserByName

User getUserByName(String name)
                   throws RemoteException
Get user by name.

Throws:
RemoteException

getAllUserNames

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

Throws:
RemoteException

doesExist

boolean doesExist(String name)
                  throws RemoteException
User existance check.

Parameters:
name - user name
Throws:
RemoteException

authenticate

boolean authenticate(String login,
                     String password)
                     throws RemoteException
Authenticate user

Throws:
RemoteException

reload

void reload()
            throws Exception
Load the user data again

Throws:
Exception

getAdminName

String getAdminName()
                    throws RemoteException
Get admin user name

Throws:
RemoteException


Copyright © 2001-2012 Codehaus. All Rights Reserved.