com.im.df.api 5.9

com.im.df.api.support
Class DFUserLoginInfo

java.lang.Object
  extended by com.im.df.api.support.DFUserLoginInfo

public class DFUserLoginInfo
extends Object

Data holder for a single user login info. It is used in IJCUserLoginService. This object is immutable.


Constructor Summary
DFUserLoginInfo(String username, Date sessionStartedTime, Date lastAccessed)
          Creates a new instance of DFUserLoginInfo.
 
Method Summary
 Date getLastAccessedTime()
          Return time when the user last accessed the session.
 Date getSessionStartedTime()
          Return time when user logged in.
 String getUsername()
          Get Username of the user.
 boolean isConnected()
          Return true if user is currently logged in, otherwise false.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DFUserLoginInfo

public DFUserLoginInfo(String username,
                       Date sessionStartedTime,
                       Date lastAccessed)
Creates a new instance of DFUserLoginInfo.

Parameters:
username - Username
sessionStartedTime - When user logged in
lastAccessed - When user's last activity was recorded (running search, modifying schema, data, etc.)
Method Detail

getUsername

public String getUsername()
Get Username of the user. Never returns null.

Returns:
Value of property username.

isConnected

public boolean isConnected()
Return true if user is currently logged in, otherwise false.

Returns:
Value of property connected.

getSessionStartedTime

public Date getSessionStartedTime()
Return time when user logged in. Can return null when user is not logged in.

Returns:
Value of property sessionStartedTime.

getLastAccessedTime

public Date getLastAccessedTime()
Return time when the user last accessed the session. Can return null when user is not logged in.

Returns:
Value of property lastAccessed.

toString

public String toString()
Overrides:
toString in class Object

com.im.df.api 5.9