|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManager
Generic description of user management classes.
Method Summary | |
---|---|
boolean |
authenticate(java.lang.String user,
java.lang.String password,
FtpSessionContext ctx)
Validates the passed user credentials. |
void |
checkResourceConsumption(java.lang.String user,
java.lang.String[] limitNames)
Checks the resource consumption of the passed users. |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> |
getAllStatistics()
Returns the logged statistics for all user and all available dates (since the server was started). |
GroupDataList |
getGroupDataList(java.lang.String username)
Returns object representations of all groups the passed user belongs to. |
UserData |
getUserData(java.lang.String username)
Returns object representations of all registered users. |
java.util.List<UserData> |
getUserDataList()
Returns object representations of all registered users. |
java.util.Map<java.lang.String,java.lang.Long> |
getUserStatistics(java.lang.String user)
Returns the resource consumption statistics for a given user. |
boolean |
isLoaded()
Checks if the configuration is loaded. |
void |
load()
(Re)loads the configuration. |
void |
updateAverageStatistics(java.lang.String user,
java.lang.String avgKeyName,
long value)
Registers the current user's transfer rate. |
void |
updateIncrementalStatistics(java.lang.String user,
java.lang.String limitName,
long value)
Registers the current user's resource consumption. |
Method Detail |
---|
void updateIncrementalStatistics(java.lang.String user, java.lang.String limitName, long value) throws FtpQuotaException
user
- The user name.limitName
- The name of the consumption type (resource limit).value
- The consumed resources.
FtpQuotaException
- Thrown if resource limit has been reached.void updateAverageStatistics(java.lang.String user, java.lang.String avgKeyName, long value)
user
- The user name.avgKeyName
- The key of the transfer rate (resource limit).value
- The consumed resources.void checkResourceConsumption(java.lang.String user, java.lang.String[] limitNames) throws FtpQuotaException
user
- The user name.limitNames
- The resource limits to condider.
FtpQuotaException
- Thrown if at least one limit has been reached.java.util.Map<java.lang.String,java.lang.Long> getUserStatistics(java.lang.String user)
user
- The user.
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> getAllStatistics()
UserData getUserData(java.lang.String username) throws FtpConfigException
username
- The user's name.
FtpConfigException
- Error in configuration.java.util.List<UserData> getUserDataList() throws FtpConfigException
FtpConfigException
- Error in configuration.GroupDataList getGroupDataList(java.lang.String username) throws FtpConfigException
username
- The user's name.
FtpConfigException
- Error in configuration.boolean authenticate(java.lang.String user, java.lang.String password, FtpSessionContext ctx) throws FtpConfigException
user
- The username.password
- The passwordctx
- The context of the current session.
FtpConfigException
- Error on reading or processing a configuration file.void load() throws FtpConfigException
FtpConfigException
- Error on reading or processing a configuration file.boolean isLoaded() throws FtpConfigException
FtpConfigException
- Error on reading or processing a configuration file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |