public class AdminSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AdminSession()
Constructor
|
AdminSession(com.workingdogs.village.Record vr,
com.konakart.db.KKCriteria c)
Instantiates the attributes of the Session object from a Record object
|
Modifier and Type | Method and Description |
---|---|
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() |
public java.lang.String sessKey
public int expiryInSecs
public java.lang.String value
public int customerId
public AdminSession()
public AdminSession(com.workingdogs.village.Record vr, com.konakart.db.KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)protected boolean hasExpired()
protected int getTimeInSecs()
public java.lang.String toString()
toString
in class java.lang.Object
public int getExpiryInSecs()
public void setExpiryInSecs(int expiry)
expiry
- The expiry to set.public java.lang.String getSessKey()
public void setSessKey(java.lang.String sessKey)
sessKey
- The sessKey to set.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value to set.public void setCustomerId(int customerId)
customerId
- the customerId to setpublic int getCustomerId()
Copyright © 2018 DS Data Systems UK Ltd.