|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.caleigo.security.ISession.DefaultSession
| Nested Class Summary |
| Nested classes inherited from class org.caleigo.security.ISession |
ISession.DefaultSession |
| Constructor Summary | |
ISession.DefaultSession(UserInfo userInfo,
int sessionID)
|
|
| Method Summary | |
java.lang.Object |
getAttribute(java.lang.String key)
This method is used to retrieve data which is stored for this session instance. |
long |
getCreatedTime()
Returns the created time when this session was instantiated. |
long |
getLastAccessTime()
Returns the time when this session was last accessed. |
int |
getSessionID()
Returns the ID for this session instance. |
UserInfo |
getUserInfo()
Returns the UserInfo corresponding to this session. |
boolean |
isValid()
This method is used to check if the session is valid. |
void |
setAttribute(java.lang.String key,
java.lang.Object attribute)
This method is used to store session specific data. |
void |
updateLastAccessTime()
Updates the time when the session was last accessed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ISession.DefaultSession(UserInfo userInfo,
int sessionID)
| Method Detail |
public java.lang.Object getAttribute(java.lang.String key)
ISession
getAttribute in interface ISessionkey - the key used to identify specific data.
public long getCreatedTime()
ISession
getCreatedTime in interface ISessionpublic long getLastAccessTime()
ISession
getLastAccessTime in interface ISessionpublic void updateLastAccessTime()
ISession
updateLastAccessTime in interface ISessionpublic int getSessionID()
ISession
getSessionID in interface ISessionpublic UserInfo getUserInfo()
ISession
getUserInfo in interface ISessionpublic boolean isValid()
ISession
isValid in interface ISession
public void setAttribute(java.lang.String key,
java.lang.Object attribute)
ISession
setAttribute in interface ISessionkey - The key used to identify the data.attribute - The data to be stored.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||