kom.gateway
Class Environment

java.lang.Object
  |
  +--kom.gateway.Environment

public class Environment
extends java.lang.Object
implements java.util.Observer

Environment data for a client session


Field Summary
(package private)  ServerConfig config
          Current server configuration
(package private)  java.lang.String cursor
          Identifies current user session
 Gateway gateway
          Thread supervisor
private  long lastAccess
           
protected  java.util.Date loginDate
          Time when user logged in
(package private)  KomData newsData
          News status information for the current user
(package private)  KomData userData
          Selected data for the current user
 
Constructor Summary
Environment(Gateway gateway, ServerConfig config)
          Constructor
 
Method Summary
 java.lang.String getCursor()
          Gets current client id
 long getLastAccess()
          Gets last access time for current user
 java.util.Date getLoginDate()
          Gets the login date and time
 void setCursor(java.lang.String cursor)
          Sets current client id
 void update(java.util.Observable o, java.lang.Object type)
          The observer Object has changed.
 void updateLastAccess()
          Updates last access time for current user
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

config

ServerConfig config
Current server configuration

gateway

public Gateway gateway
Thread supervisor

loginDate

protected java.util.Date loginDate
Time when user logged in

lastAccess

private long lastAccess

cursor

java.lang.String cursor
Identifies current user session

userData

KomData userData
Selected data for the current user

newsData

KomData newsData
News status information for the current user
Constructor Detail

Environment

public Environment(Gateway gateway,
                   ServerConfig config)
Constructor
Parameters:
gateway - Client supervisor object
Method Detail

getLoginDate

public java.util.Date getLoginDate()
Gets the login date and time

getCursor

public java.lang.String getCursor()
Gets current client id

setCursor

public void setCursor(java.lang.String cursor)
Sets current client id

getLastAccess

public long getLastAccess()
Gets last access time for current user

updateLastAccess

public void updateLastAccess()
Updates last access time for current user

update

public void update(java.util.Observable o,
                   java.lang.Object type)
The observer Object has changed. Implements Observer
Specified by:
update in interface java.util.Observer
Parameters:
o - The Observable instance
type - The object (Frame type)