org.mega.gasp.platform
Interface Session

All Known Implementing Classes:
SessionImpl

public interface Session

Session represent the connection of the user in the application. So it is instantiate immedialtly after the login of the user. The Session ID is used for identification of the user on a request.

Author:
PELLERIN Romain (pellerin@cnam.fr) - MEGA Project

Method Summary
 int getActorID()
          Returns the Actor ID of the user.
 int getActorSessionID()
          Returns the ActorSession ID if the user have already choiced a game session.
 int getSessionID()
          Returns the Session ID of the Session object.
 long getTimeout()
          Returns last time infos received for the user associated with the actorSession.
 void refreshTimeout()
          Save last time infos received for the user associated with the actorSession.
 void setActorSessionID(int aSID)
          Sets the ActorSession ID after game session choose by the user.
 void setTimeout(long _timeout)
          Save last time infos received for the user associated with the actorSession.
 

Method Detail

getSessionID

public int getSessionID()
Returns the Session ID of the Session object.

Returns:
the Session ID

getActorID

public int getActorID()
Returns the Actor ID of the user.

Returns:
the Actor ID

getActorSessionID

public int getActorSessionID()
Returns the ActorSession ID if the user have already choiced a game session.

Returns:
the ActorSession ID

setActorSessionID

public void setActorSessionID(int aSID)
Sets the ActorSession ID after game session choose by the user.

Parameters:
aSID - the ActorSession ID

getTimeout

public long getTimeout()
Returns last time infos received for the user associated with the actorSession.

Returns:
long the application timeout

setTimeout

public void setTimeout(long _timeout)
Save last time infos received for the user associated with the actorSession.


refreshTimeout

public void refreshTimeout()
Save last time infos received for the user associated with the actorSession.