|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.agents.sha.session.Session
public class Session
This class represent Session concept to setup multi-stepped interaction with
the user. Each session is assiociated with Session.SessionData
.
Each session is identified by sessionID
generated on the base
of peerID
(usually IP of the user machine), current time and
pseudo-random numberSince, since there can be many independent sessions
started from one machine.
Nested Class Summary | |
---|---|
class |
Session.SessionData
This class simply do notihngs, but extends map and can be used in the future for providing additional functionality for operating on session data. |
Constructor Summary | |
---|---|
Session(String peerID)
Constructs the session object on the base of the given peerID |
Method Summary | |
---|---|
Session.SessionData |
getData()
Returns the data bound with this session. |
String |
getPeerID()
Returns ID of the machine, at which the user connects with the system, usually IP number. |
String |
getSessionID()
Returns unique ID of this session. |
Date |
getStartTime()
Returns the time, at which this session was started. |
Date |
getUpdateTime()
Determines the last moment the systems accessed this object. |
long |
getUserID()
Returns ID of the logged user. |
boolean |
isLoggedIn()
Checks whether logged in this session and is still logged. |
void |
loginUser(int userID)
|
void |
logoutUser()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Session(String peerID)
peerID
- is unique ID of the machine, at which the user connects with
the system, usually IP number.Method Detail |
---|
public String getPeerID()
public long getUserID()
ViewParams.UNKNOWN_USER_ID
.public String getSessionID()
public Date getStartTime()
public Date getUpdateTime()
public boolean isLoggedIn()
public Session.SessionData getData()
public void loginUser(int userID)
public void logoutUser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |