|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.niggle.data.DefaultRecord | +--com.niggle.data.SessionImpl
An implementation of com.niggle.data.Session that leverages the functionality of the DefaultRecord implementation
SimpleSessionManager
, Serialized FormFields inherited from interface com.niggle.data.Record |
INVALID_ID, STATUS_KEY, TYPE_KEY |
Constructor Summary | |
SessionImpl()
|
Method Summary | |
java.lang.String |
getUniqueKey()
Get the unique key that identifies this session. |
java.lang.String |
getUsername()
|
boolean |
isStale()
Is this session stale (e.g. |
boolean |
isValidSession(java.lang.String username)
Checks the validity of the session. |
Methods inherited from class com.niggle.data.DefaultRecord |
checkValidity, clearFields, equals, get, get, get, getCreationDate, getDisplayLocale, getLastModified, getMetadata, getMutableCopy, getPrimaryKey, getType, getVersion, isImmutable, postCheck, preCheck, readExternal, set, set, set, setMetadata, setPrimaryKey, setValuesFromTable, toString, touch, writeExternal |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SessionImpl()
Method Detail |
public java.lang.String getUsername()
public java.lang.String getUniqueKey()
Session
getUniqueKey
in interface Session
public boolean isValidSession(java.lang.String username)
expirationTime + lifeTime <
currentTime
, returns true
; otherwise, returns
false
.isValidSession
in interface Session
owner
- the supposed owner of the session.public boolean isStale()
isStale
in class DefaultRecord
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |