public abstract class SessionImpl extends Object implements Session
| Constructor and Description |
|---|
SessionImpl(long id,
Date creationDate,
long duration,
String userName,
long userId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Date |
getCreationDate()
Gets the session's creation date
|
long |
getDuration()
Gets the session's duration
|
long |
getId()
Gets the session's identifier
|
long |
getUserId()
Gets the user id associated to this session, if available (-1 if not)
|
String |
getUserName()
Gets the user name associated to this session
|
int |
hashCode() |
boolean |
isTechnicalUser()
Is the logged in user, the special technical user?
|
void |
setCreationDate(Date creationDate) |
void |
setDuration(long duration) |
void |
setId(long id) |
void |
setTechnicalUser(boolean technicalUser) |
void |
setUserId(long userId) |
void |
setUserName(String userName) |
String |
toString() |
public long getId()
Sessionpublic Date getCreationDate()
SessiongetCreationDate in interface Sessionpublic long getDuration()
SessiongetDuration in interface Sessionpublic String getUserName()
SessiongetUserName in interface Sessionpublic long getUserId()
Sessionpublic boolean isTechnicalUser()
SessionisTechnicalUser in interface Sessionpublic void setTechnicalUser(boolean technicalUser)
public void setId(long id)
public void setCreationDate(Date creationDate)
public void setDuration(long duration)
public void setUserName(String userName)
public void setUserId(long userId)
Copyright © 2013 BonitaSoft. All Rights Reserved.