|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.BasicData net.sf.basedb.core.data.SessionData
public class SessionData
This class holds information about a session.
Session
,
Session and client overviewField Summary | |
---|---|
private ClientData |
client
|
private boolean |
impersonated
|
private String |
loginComment
|
private Date |
loginTime
|
private Date |
logoutTime
|
static int |
MAX_LOGIN_COMMENT_LENGTH
The maximum length of the login comment that can be stored in the database. |
static int |
MAX_REMOTE_ID_LENGTH
The maximum length of the remote ID that can be stored in the database. |
private String |
remoteId
|
private UserData |
user
|
Constructor Summary | |
---|---|
SessionData()
|
Method Summary | |
---|---|
ClientData |
getClient()
Get the client application the user was using. |
boolean |
getImpersonated()
Check if another user is acting as the user of this session. |
String |
getLoginComment()
Get the login comment. |
Date |
getLoginTime()
Get the date and time the user logged in. |
Date |
getLogoutTime()
Get the date and time the user logged out. |
String |
getRemoteId()
Get the login comment. |
UserData |
getUser()
Get the user that logged in with this session. |
void |
setClient(ClientData client)
|
void |
setImpersonated(boolean impersonated)
|
void |
setLoginComment(String loginComment)
|
void |
setLoginTime(Date loginTime)
|
void |
setLogoutTime(Date logoutTime)
|
void |
setRemoteId(String remoteId)
|
void |
setUser(UserData user)
|
Methods inherited from class net.sf.basedb.core.data.BasicData |
---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private UserData user
private Date loginTime
private Date logoutTime
public static final int MAX_LOGIN_COMMENT_LENGTH
setLoginComment(String)
,
Constant Field Valuesprivate String loginComment
private boolean impersonated
private ClientData client
public static final int MAX_REMOTE_ID_LENGTH
setRemoteId(String)
,
Constant Field Valuesprivate String remoteId
Constructor Detail |
---|
public SessionData()
Method Detail |
---|
public UserData getUser()
public void setUser(UserData user)
public Date getLoginTime()
public void setLoginTime(Date loginTime)
public Date getLogoutTime()
public void setLogoutTime(Date logoutTime)
public String getLoginComment()
public void setLoginComment(String loginComment)
public boolean getImpersonated()
public void setImpersonated(boolean impersonated)
public ClientData getClient()
public void setClient(ClientData client)
public String getRemoteId()
public void setRemoteId(String remoteId)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |