|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManager
User manager interface.
| Method Summary | |
|---|---|
User |
authenticate(Authentication authentication)
Authenticate user |
void |
delete(java.lang.String username)
Delete the user from the system. |
boolean |
doesExist(java.lang.String username)
Check if the user exists. |
java.lang.String |
getAdminName()
Get admin user name |
java.lang.String[] |
getAllUserNames()
Get all user names in the system. |
User |
getUserByName(java.lang.String username)
Get user by name. |
boolean |
isAdmin(java.lang.String username)
Check if the user is admin. |
void |
save(User user)
Save user. |
| Method Detail |
|---|
User getUserByName(java.lang.String username)
throws FtpException
username - the name to search for.
FtpException - when the UserManager can't fulfill the request.
java.lang.String[] getAllUserNames()
throws FtpException
FtpException - when the UserManager can't fulfill the request.
void delete(java.lang.String username)
throws FtpException
username - The name of the User to delete
FtpException - when the UserManager can't fulfill the request.
java.lang.UnsupportedOperationException - if UserManager in read-only mode
void save(User user)
throws FtpException
user - the Uset to save
FtpException - when the UserManager can't fulfill the request.
java.lang.UnsupportedOperationException - if UserManager in read-only mode
boolean doesExist(java.lang.String username)
throws FtpException
username - the name of the user to check.
FtpException
User authenticate(Authentication authentication)
throws AuthenticationFailedException
authentication - The Authentication that proves the users identity
AuthenticationFailedException
FtpException - when the UserManager can't fulfill the request.
java.lang.String getAdminName()
throws FtpException
FtpException - when the UserManager can't fulfill the request.
boolean isAdmin(java.lang.String username)
throws FtpException
username - The name of the User to check
FtpException - when the UserManager can't fulfill the request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||