public class UserSession extends Object implements Comparable<UserSession>
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_CLOSED |
static int |
STATUS_EXPIRED |
static int |
STATUS_OPEN |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UserSession o) |
boolean |
equals(Object obj) |
protected void |
finalize() |
Date |
getCreation() |
Map<String,Object> |
getDictionary() |
Object |
getExternalSession()
Representation of the container session eventually associated to this
user session
|
String |
getId() |
Date |
getLastRenew() |
int |
getStatus() |
long |
getUserId() |
String |
getUserName() |
Object |
getUserObject()
A generic object that is stored within the session and is thought to be
used as alternative session identifier
|
int |
hashCode() |
void |
renew() |
void |
setClosed() |
void |
setDictionary(Map<String,Object> dictionary)
Map that collects session-bound values
|
void |
setExpired() |
void |
setExternalSession(Object externalSession) |
void |
setUserId(long userId) |
void |
setUserObject(Object userObject) |
String |
toString() |
public static final int STATUS_OPEN
public static final int STATUS_EXPIRED
public static final int STATUS_CLOSED
public void setDictionary(Map<String,Object> dictionary)
public String getId()
public Date getCreation()
public Date getLastRenew()
public void renew()
public int getStatus()
public void setExpired()
public void setClosed()
public String getUserName()
public Object getExternalSession()
public void setExternalSession(Object externalSession)
protected void finalize() throws Throwable
public int compareTo(UserSession o)
compareTo
in interface Comparable<UserSession>
public Object getUserObject()
public void setUserObject(Object userObject)
public long getUserId()
public void setUserId(long userId)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.