Class SPlatformSessionImpl
- java.lang.Object
-
- org.bonitasoft.engine.platform.session.model.impl.SPlatformSessionImpl
-
- All Implemented Interfaces:
java.io.Serializable,SPlatformSession
public class SPlatformSessionImpl extends java.lang.Object implements SPlatformSession
- Author:
- Elias Ricken de Medeiros, Matthieu Chaffotte
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SPlatformSessionImpl(long id, java.lang.String username)SPlatformSessionImpl(SPlatformSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.DategetCreationDate()Gets the session's creation date (GMT+0)longgetDuration()Gets the session's durationjava.util.DategetExpirationDate()Gets the session's expiration date (GMT+0)longgetId()Gets the session's idjava.util.DategetLastRenewDate()Gets the session's last renew date (GMT+0)longgetUserId()Gets the user id associated to this sessionjava.lang.StringgetUserName()Gets the user name associated to this sessioninthashCode()voidsetCreationDate(java.util.Date creationDate)voidsetDuration(long duration)voidsetLastRenewDate(java.util.Date lastRenewDate)
-
-
-
Constructor Detail
-
SPlatformSessionImpl
public SPlatformSessionImpl(long id, java.lang.String username)
-
SPlatformSessionImpl
public SPlatformSessionImpl(SPlatformSession session)
-
-
Method Detail
-
getId
public long getId()
Description copied from interface:SPlatformSessionGets the session's id- Specified by:
getIdin interfaceSPlatformSession- Returns:
-
getCreationDate
public java.util.Date getCreationDate()
Description copied from interface:SPlatformSessionGets the session's creation date (GMT+0)- Specified by:
getCreationDatein interfaceSPlatformSession- Returns:
-
getLastRenewDate
public java.util.Date getLastRenewDate()
Description copied from interface:SPlatformSessionGets the session's last renew date (GMT+0)- Specified by:
getLastRenewDatein interfaceSPlatformSession- Returns:
-
getDuration
public long getDuration()
Description copied from interface:SPlatformSessionGets the session's duration- Specified by:
getDurationin interfaceSPlatformSession- Returns:
-
getExpirationDate
public java.util.Date getExpirationDate()
Description copied from interface:SPlatformSessionGets the session's expiration date (GMT+0)- Specified by:
getExpirationDatein interfaceSPlatformSession- Returns:
-
getUserName
public java.lang.String getUserName()
Description copied from interface:SPlatformSessionGets the user name associated to this session- Specified by:
getUserNamein interfaceSPlatformSession- Returns:
-
getUserId
public long getUserId()
Description copied from interface:SPlatformSessionGets the user id associated to this session- Specified by:
getUserIdin interfaceSPlatformSession- Returns:
- the user Id for this session
-
setLastRenewDate
public void setLastRenewDate(java.util.Date lastRenewDate)
-
setDuration
public void setDuration(long duration)
-
setCreationDate
public void setCreationDate(java.util.Date creationDate)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-