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()
Session
public Date getCreationDate()
Session
getCreationDate
in interface Session
public long getDuration()
Session
getDuration
in interface Session
public String getUserName()
Session
getUserName
in interface Session
public long getUserId()
Session
public boolean isTechnicalUser()
Session
isTechnicalUser
in interface Session
public 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.