public class SessionData extends BasicData
Session
,
Developer documentation: Client, session and settingsModifier and Type | Field and Description |
---|---|
private String |
authenticationMethod |
private ClientData |
client |
private boolean |
impersonated |
private String |
loginComment |
private Date |
loginTime |
private Date |
logoutTime |
static int |
MAX_AUTHENTICATION_METHOD
The maximum length of the authentication method that can be stored in the database.
|
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 and Description |
---|
SessionData() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationMethod()
Get the authentication method used for this session.
|
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 |
setAuthenticationMethod(String authenticationMethod) |
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) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
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
public static final int MAX_AUTHENTICATION_METHOD
private String authenticationMethod
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)
public String getAuthenticationMethod()
public void setAuthenticationMethod(String authenticationMethod)