com.arsdigita.acs
Class SessionInfo

java.lang.Object
  |
  +--com.arsdigita.acs.SessionInfo

public class SessionInfo
extends java.lang.Object

Represents information about a session. A session is {sessionId, userId, token, secure_token, last_ip, last_hit}


Field Summary
static java.lang.String cvsId
           
 
Constructor Summary
SessionInfo(java.math.BigDecimal userId, java.lang.String token, java.lang.String secureToken, java.lang.String lastIp, long lastHit)
          Bundles a new SessionInfo object with the supplied fields.
SessionInfo(java.lang.String sessionId)
          Reads the stored information for a particular session id from the database.
 
Method Summary
 boolean exists()
           
 long getLastHit()
           
 java.lang.String getLastIp()
           
 java.lang.String getSecureToken()
           
 java.lang.String getToken()
           
 java.math.BigDecimal getUserId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId
Constructor Detail

SessionInfo

public SessionInfo(java.lang.String sessionId)
            throws java.sql.SQLException,
                   com.arsdigita.db.DbException
Reads the stored information for a particular session id from the database.

SessionInfo

public SessionInfo(java.math.BigDecimal userId,
                   java.lang.String token,
                   java.lang.String secureToken,
                   java.lang.String lastIp,
                   long lastHit)
Bundles a new SessionInfo object with the supplied fields.
Method Detail

getUserId

public java.math.BigDecimal getUserId()

getToken

public java.lang.String getToken()

getLastHit

public long getLastHit()

getLastIp

public java.lang.String getLastIp()

getSecureToken

public java.lang.String getSecureToken()

exists

public boolean exists()