|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.trajano.twiff.internal.token.dao.SessionTokenDao
public final class SessionTokenDao
DAO to manipate session token data.
| Constructor Summary | |
|---|---|
SessionTokenDao(org.hibernate.Session session)
Constructs the DAO. |
|
| Method Summary | |
|---|---|
void |
addToken(String sessionId,
String tokenId)
Adds a token into the table. |
Serializable |
getPageBean(String sessionId,
String tokenId)
Gets the redirect URL based on the session and token ID. |
URL |
getRedirectUrl(String sessionId,
String tokenId)
Gets the redirect URL based on the session and token ID. |
int |
getRequestCount(String sessionId,
String tokenId)
Gets the request count of the object. |
boolean |
isTokenAvailable(String sessionId,
String tokenId)
This checks if a token is available in the database. |
boolean |
isTokenValid(String sessionId,
String tokenId)
Checks if the session token is valid. |
void |
removeSession(String sessionId)
Removes all the token and session data for the session id. |
void |
updateTokenInfo(String sessionId,
String tokenId,
URL redirectURL,
Serializable pageBean)
Adds the token info. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionTokenDao(org.hibernate.Session session)
session - the hibernate session.| Method Detail |
|---|
public void addToken(String sessionId,
String tokenId)
sessionId - the session IDtokenId - the token ID
public Serializable getPageBean(String sessionId,
String tokenId)
sessionId - the session IDtokenId - the token ID
public URL getRedirectUrl(String sessionId,
String tokenId)
sessionId - the session IDtokenId - the token ID
public boolean isTokenAvailable(String sessionId,
String tokenId)
sessionId - session IdtokenId - token Id
public boolean isTokenValid(String sessionId,
String tokenId)
sessionId - session idtokenId - token id
public void removeSession(String sessionId)
sessionId - session id
public void updateTokenInfo(String sessionId,
String tokenId,
URL redirectURL,
Serializable pageBean)
sessionId - the session IDtokenId - the token IDredirectURL - the redirect URLpageBean - the page bean data
public int getRequestCount(String sessionId,
String tokenId)
sessionId - the session IDtokenId - the token ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||