public class SessionData extends BasicData
Session
,
Developer documentation: Client, session and settingsModifier and Type | Field and Description |
---|---|
private java.lang.String |
authenticationMethod |
private ClientData |
client |
private UserDeviceData |
device |
private boolean |
impersonated |
private java.lang.String |
location |
private java.lang.Float |
locationLat |
private java.lang.Float |
locationLong |
private java.lang.String |
loginComment |
private java.util.Date |
loginTime |
private java.util.Date |
logoutTime |
static int |
MAX_AUTHENTICATION_METHOD
The maximum length of the authentication method that can be stored in the database.
|
static int |
MAX_LOCATION_LENGTH
The maximum length of the location 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 java.lang.String |
remoteId |
private UserData |
user |
Constructor and Description |
---|
SessionData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthenticationMethod()
Get the authentication method used for this session.
|
ClientData |
getClient()
Get the client application the user was using.
|
UserDeviceData |
getDevice()
Get the device the user was using.
|
boolean |
getImpersonated()
Check if another user is acting as the user of this session.
|
java.lang.String |
getLocation()
Get the location of the user (if known).
|
java.lang.Float |
getLocationLatitude()
Get the location latitude of the user (if known).
|
java.lang.Float |
getLocationLongitude()
Get the location longitude of the user (if known).
|
java.lang.String |
getLoginComment()
Get the login comment.
|
java.util.Date |
getLoginTime()
Get the date and time the user logged in.
|
java.util.Date |
getLogoutTime()
Get the date and time the user logged out.
|
java.lang.String |
getRemoteId()
Get the login comment.
|
UserData |
getUser()
Get the user that logged in with this session.
|
void |
setAuthenticationMethod(java.lang.String authenticationMethod) |
void |
setClient(ClientData client) |
void |
setDevice(UserDeviceData device) |
void |
setImpersonated(boolean impersonated) |
void |
setLocation(java.lang.String location) |
void |
setLocationLatitude(java.lang.Float locationLat) |
void |
setLocationLongitude(java.lang.Float locationLong) |
void |
setLoginComment(java.lang.String loginComment) |
void |
setLoginTime(java.util.Date loginTime) |
void |
setLogoutTime(java.util.Date logoutTime) |
void |
setRemoteId(java.lang.String remoteId) |
void |
setUser(UserData user) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
private UserData user
private java.util.Date loginTime
private java.util.Date logoutTime
public static final int MAX_LOGIN_COMMENT_LENGTH
setLoginComment(String)
,
Constant Field Valuesprivate java.lang.String loginComment
private boolean impersonated
private ClientData client
private UserDeviceData device
public static final int MAX_REMOTE_ID_LENGTH
setRemoteId(String)
,
Constant Field Valuesprivate java.lang.String remoteId
public static final int MAX_LOCATION_LENGTH
setLocation(String)
,
Constant Field Valuesprivate java.lang.String location
private java.lang.Float locationLat
private java.lang.Float locationLong
public static final int MAX_AUTHENTICATION_METHOD
private java.lang.String authenticationMethod
public UserData getUser()
public void setUser(UserData user)
public java.util.Date getLoginTime()
public void setLoginTime(java.util.Date loginTime)
public java.util.Date getLogoutTime()
public void setLogoutTime(java.util.Date logoutTime)
public java.lang.String getLoginComment()
public void setLoginComment(java.lang.String loginComment)
public boolean getImpersonated()
public void setImpersonated(boolean impersonated)
public ClientData getClient()
public void setClient(ClientData client)
public UserDeviceData getDevice()
public void setDevice(UserDeviceData device)
public java.lang.String getRemoteId()
public void setRemoteId(java.lang.String remoteId)
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public java.lang.Float getLocationLatitude()
public void setLocationLatitude(java.lang.Float locationLat)
public java.lang.Float getLocationLongitude()
public void setLocationLongitude(java.lang.Float locationLong)
public java.lang.String getAuthenticationMethod()
public void setAuthenticationMethod(java.lang.String authenticationMethod)