|
||||||||||
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(String username)
Delete the user from the system. |
boolean |
doesExist(String username)
Check if the user exists. |
String |
getAdminName()
Get admin user name |
String[] |
getAllUserNames()
Get all user names in the system. |
User |
getUserByName(String username)
Get user by name. |
boolean |
isAdmin(String username)
Check if the user is admin. |
void |
save(User user)
Save user. |
Method Detail |
---|
User getUserByName(String username) throws FtpException
username
- the name to search for.
FtpException
- when the UserManager can't fulfill the request.String[] getAllUserNames() throws FtpException
FtpException
- when the UserManager can't fulfill the request.void delete(String username) throws FtpException
username
- The name of the User
to delete
FtpException
- when the UserManager can't fulfill the request.
UnsupportedOperationException
- if UserManager in read-only modevoid save(User user) throws FtpException
user
- the Uset to save
FtpException
- when the UserManager can't fulfill the request.
UnsupportedOperationException
- if UserManager in read-only modeboolean doesExist(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.String getAdminName() throws FtpException
FtpException
- when the UserManager can't fulfill the request.boolean isAdmin(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 |