com.konakartadmin.bl
Class AdminSession

java.lang.Object
  extended by com.konakartadmin.bl.AdminSession

public class AdminSession
extends java.lang.Object


Field Summary
 int customerId
          Used to store customer id
 int expiryInSecs
          Session expiry time in seconds
 java.lang.String sessKey
          Session key.
 java.lang.String value
          Used to store miscellaneous session data - not used beyond v4.0.0.0
 
Constructor Summary
AdminSession()
          Constructor
AdminSession(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Session object from a Record object
 
Method Summary
 int getCustomerId()
           
 int getExpiryInSecs()
           
 java.lang.String getSessKey()
           
protected  int getTimeInSecs()
          Utility method to return the current time in minutes
 java.lang.String getValue()
           
protected  boolean hasExpired()
          Checks to see whether the session has timed out.
 void setCustomerId(int customerId)
           
 void setExpiryInSecs(int expiry)
           
 void setSessKey(java.lang.String sessKey)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessKey

public java.lang.String sessKey
Session key. This is a randomly generated number.


expiryInSecs

public int expiryInSecs
Session expiry time in seconds


value

public java.lang.String value
Used to store miscellaneous session data - not used beyond v4.0.0.0


customerId

public int customerId
Used to store customer id

Constructor Detail

AdminSession

public AdminSession()
Constructor


AdminSession

public AdminSession(com.workingdogs.village.Record vr,
                    org.apache.torque.util.Criteria c)
             throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Session object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

hasExpired

protected boolean hasExpired()
Checks to see whether the session has timed out.

Returns:
true if valid; false otherwise

getTimeInSecs

protected int getTimeInSecs()
Utility method to return the current time in minutes

Returns:
Returns the time

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Address object.

getExpiryInSecs

public int getExpiryInSecs()
Returns:
Returns the expiry.

setExpiryInSecs

public void setExpiryInSecs(int expiry)
Parameters:
expiry - The expiry to set.

getSessKey

public java.lang.String getSessKey()
Returns:
Returns the sessKey.

setSessKey

public void setSessKey(java.lang.String sessKey)
Parameters:
sessKey - The sessKey to set.

getValue

public java.lang.String getValue()
Returns:
Returns the value.

setValue

public void setValue(java.lang.String value)
Parameters:
value - The value to set.

setCustomerId

public void setCustomerId(int customerId)
Parameters:
customerId - the customerId to set

getCustomerId

public int getCustomerId()
Returns:
the customerId


Copyright © 2011 DS Data Systems UK Ltd.