|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.remote.UserManager
public class UserManager
This is user manager remote adapter class. This is used by remote admin GUI.
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 |
---|
public UserManager(UserManagerInterface userManager) throws RemoteException
RemoteException
Method Detail |
---|
public UserManagerInterface getUserManager()
public void save(User user) throws Exception
save
in interface UserManagerInterface
Exception
public void delete(String userName) throws Exception
delete
in interface UserManagerInterface
name
- name of the user to be deleted.
Exception
public User getUserByName(String name)
getUserByName
in interface UserManagerInterface
public List getAllUserNames()
getAllUserNames
in interface UserManagerInterface
public boolean doesExist(String name)
doesExist
in interface UserManagerInterface
name
- user namepublic boolean authenticate(String login, String password)
authenticate
in interface UserManagerInterface
public void reload() throws Exception
reload
in interface UserManagerInterface
Exception
public String getAdminName()
getAdminName
in interface UserManagerInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |