public class SSessionImpl extends Object implements SSession
| Constructor and Description |
|---|
SSessionImpl(long id,
long tenantId,
String userName,
String applicationName,
long userId) |
SSessionImpl(SSession session) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getApplicationName()
Get the application's name.
|
String |
getClientApplicationName()
Get the client application's name.
|
String |
getClientIP()
Get client's IP associated to this session
|
String |
getClusterNode()
Get the cluster node when the engine is running in a cluster
|
Date |
getCreationDate()
Gets the session's creation date (GMT+0)
|
long |
getDuration()
Gets the session's duration
|
Date |
getExpirationDate()
Gets the session's expiration date (GMT+0)
|
long |
getId()
Gets the session's id
|
Date |
getLastRenewDate()
Gets the session's last renew date (GMT+0)
|
long |
getTenantId()
Gets the tenantId associated to this session
|
long |
getUserId() |
String |
getUserName()
Gets the user name associated to this session
|
int |
hashCode() |
boolean |
isTechnicalUser()
Checks whether the user is the technical user.
|
boolean |
isValid() |
void |
setApplicationName(String applicationName) |
void |
setClientApplicationName(String clientApplicationName) |
void |
setClientIP(String clientIP) |
void |
setClusterNode(String clusterNode) |
void |
setCreationDate(Date creationDate) |
void |
setDuration(long duration) |
void |
setLastRenewDate(Date lastRenewDate) |
void |
setTechnicalUser(boolean technicalUser) |
void |
setTenantId(long tenantId) |
void |
setUserId(long userId) |
void |
setUserName(String userName) |
public SSessionImpl(long id,
long tenantId,
String userName,
String applicationName,
long userId)
public SSessionImpl(SSession session)
public long getId()
SSessionpublic Date getCreationDate()
SSessiongetCreationDate in interface SSessionpublic void setCreationDate(Date creationDate)
public Date getLastRenewDate()
SSessiongetLastRenewDate in interface SSessionpublic void setLastRenewDate(Date lastRenewDate)
public long getDuration()
SSessiongetDuration in interface SSessionpublic void setDuration(long duration)
public Date getExpirationDate()
SSessiongetExpirationDate in interface SSessionpublic String getUserName()
SSessiongetUserName in interface SSessionpublic void setUserName(String userName)
public long getTenantId()
SSessiongetTenantId in interface SSessionpublic void setTenantId(long tenantId)
public String getClientIP()
SSessiongetClientIP in interface SSessionpublic void setClientIP(String clientIP)
public String getClusterNode()
SSessiongetClusterNode in interface SSessionpublic void setClusterNode(String clusterNode)
public String getApplicationName()
SSessiongetApplicationName in interface SSessionpublic void setApplicationName(String applicationName)
public String getClientApplicationName()
SSessiongetClientApplicationName in interface SSessionpublic void setClientApplicationName(String clientApplicationName)
public long getUserId()
public void setUserId(long userId)
public boolean isTechnicalUser()
SSessionisTechnicalUser in interface SSessionpublic void setTechnicalUser(boolean technicalUser)
Copyright © 2018 Bonitasoft S.A.. All rights reserved.