|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.usermanager.User
public class User
Generic user class. All the application specific user classes will be derived from this.
Field Summary | |
---|---|
static String |
ATTR_ENABLE
enableflag |
static String |
ATTR_HOME
homedirectory |
static String |
ATTR_LOGIN
uid |
static String |
ATTR_MAX_DOWNLOAD_RATE
downloadrate |
static String |
ATTR_MAX_IDLE_TIME
idletime |
static String |
ATTR_MAX_UPLOAD_RATE
uploadrate |
static String |
ATTR_PASSWORD
userpassword |
static String |
ATTR_WRITE_PERM
writepermission |
Constructor Summary | |
---|---|
User()
Constructor, set session id and default virtual directory object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Equality check. |
InetAddress |
getClientAddress()
Get client address |
boolean |
getEnabled()
Get the user enable status. |
long |
getLastAccessTime()
Get last access time |
long |
getLoginTime()
Get user loglin time. |
int |
getMaxDownloadRate()
Get maximum user download rate in bytes/sec |
int |
getMaxIdleTime()
Get the maximum idle time in second. |
int |
getMaxUploadRate()
Get maximum user upload rate in bytes/sec. |
String |
getName()
Get the user name. |
String |
getPassword()
Get the user password. |
String |
getSessionId()
Get session id. |
VirtualDirectory |
getVirtualDirectory()
get user filesystem view |
boolean |
hasLoggedIn()
Check the user login status. |
void |
hitUser()
Hit user - update last access time |
boolean |
isActive()
Is still active. |
boolean |
isActive(long currTime)
Is an active user (is removable)? Compares the last access time with the specified time. |
void |
login()
User login. |
void |
logout()
User logout |
void |
setClientAddress(InetAddress clientAddress)
Set client address |
void |
setEnabled(boolean enb)
Set the user enable status |
void |
setMaxDownloadRate(int rate)
Set user maximum download rate limit. |
void |
setMaxIdleTime(int idleSec)
Set the maximum idle time in second. |
void |
setMaxUploadRate(int rate)
Set user maximum upload rate limit. |
void |
setName(String name)
Set user name. |
void |
setPassword(String pass)
Set user password |
String |
toString()
String representation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ATTR_LOGIN
public static final String ATTR_PASSWORD
public static final String ATTR_HOME
public static final String ATTR_WRITE_PERM
public static final String ATTR_ENABLE
public static final String ATTR_MAX_IDLE_TIME
public static final String ATTR_MAX_UPLOAD_RATE
public static final String ATTR_MAX_DOWNLOAD_RATE
Constructor Detail |
---|
public User()
Method Detail |
---|
public String getName()
public void setName(String name)
public String getPassword()
public void setPassword(String pass)
public int getMaxIdleTime()
public void setMaxIdleTime(int idleSec)
public boolean getEnabled()
public void setEnabled(boolean enb)
public int getMaxUploadRate()
public void setMaxUploadRate(int rate)
public int getMaxDownloadRate()
public void setMaxDownloadRate(int rate)
public InetAddress getClientAddress()
public void setClientAddress(InetAddress clientAddress)
public VirtualDirectory getVirtualDirectory()
public String getSessionId()
public long getLoginTime()
public long getLastAccessTime()
public boolean hasLoggedIn()
public void login()
public void logout()
public boolean isActive(long currTime)
public boolean isActive()
public void hitUser()
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |