|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminSession
public class AdminSession
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 |
---|
public java.lang.String sessKey
public int expiryInSecs
public java.lang.String value
public int customerId
Constructor Detail |
---|
public AdminSession()
public AdminSession(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column names
com.workingdogs.village.DataSetException
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |