public class SPlatformSessionImpl extends java.lang.Object implements SPlatformSession
| Constructor and Description |
|---|
SPlatformSessionImpl(long id,
java.lang.String username) |
SPlatformSessionImpl(SPlatformSession session) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreationDate()
Gets the session's creation date (GMT+0)
|
long |
getDuration()
Gets the session's duration
|
java.util.Date |
getExpirationDate()
Gets the session's expiration date (GMT+0)
|
long |
getId()
Gets the session's id
|
java.util.Date |
getLastRenewDate()
Gets the session's last renew date (GMT+0)
|
long |
getUserId()
Gets the user id associated to this session
|
java.lang.String |
getUserName()
Gets the user name associated to this session
|
int |
hashCode() |
void |
setCreationDate(java.util.Date creationDate) |
void |
setDuration(long duration) |
void |
setLastRenewDate(java.util.Date lastRenewDate) |
public SPlatformSessionImpl(long id,
java.lang.String username)
public SPlatformSessionImpl(SPlatformSession session)
public long getId()
SPlatformSessiongetId in interface SPlatformSessionpublic java.util.Date getCreationDate()
SPlatformSessiongetCreationDate in interface SPlatformSessionpublic java.util.Date getLastRenewDate()
SPlatformSessiongetLastRenewDate in interface SPlatformSessionpublic long getDuration()
SPlatformSessiongetDuration in interface SPlatformSessionpublic java.util.Date getExpirationDate()
SPlatformSessiongetExpirationDate in interface SPlatformSessionpublic java.lang.String getUserName()
SPlatformSessiongetUserName in interface SPlatformSessionpublic long getUserId()
SPlatformSessiongetUserId in interface SPlatformSessionpublic void setLastRenewDate(java.util.Date lastRenewDate)
public void setDuration(long duration)
public void setCreationDate(java.util.Date creationDate)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object