ikrs.util.session
Interface Session<K,V,U>

All Superinterfaces:
Environment<K,V>, java.util.Map<K,V>
All Known Implementing Classes:
AbstractSession, DefaultSession

public interface Session<K,V,U>
extends Environment<K,V>

A simple session interface. Basically a session is nothing more than a named environment that is bound to a specific system user (remote or local). Each session is identified by its unique session ID.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 java.util.Date getCreationTime()
          This method return the date/time of the session's creation.
 java.util.Date getLastAccessTime()
          This method returns the date/time of the last read OR write access to this session.
 java.util.Date getLastModified()
          This method returns the date/time of the last write access to this session.
 java.util.UUID getSessionID()
          Get the session's unique ID.
 U getUserID()
          Get the session's user ID.
 
Methods inherited from interface ikrs.util.Environment
allowsMultipleChildNames, createChild, getAllChildren, getChild, getChildCount, getChildren, getParent, locateChild, removeAllChildren, removeChild
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getSessionID

java.util.UUID getSessionID()
Get the session's unique ID. The returned ID must never be null and it must never change.

Returns:
The session's ID.

getUserID

U getUserID()
Get the session's user ID. The user ID must not be null and must not change.

Returns:
The session's user ID.

getCreationTime

java.util.Date getCreationTime()
This method return the date/time of the session's creation.

Returns:
The date/time of the session's creation.

getLastModified

java.util.Date getLastModified()
This method returns the date/time of the last write access to this session.

Returns:
The date/time of the last write access to this session.

getLastAccessTime

java.util.Date getLastAccessTime()
This method returns the date/time of the last read OR write access to this session.

Returns:
The date/time of the last read OR write access to this session.