|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.authentication.AuthenticationDaoJdbc
public class AuthenticationDaoJdbc
Authentication dao implementation.
Constructor Summary | |
---|---|
AuthenticationDaoJdbc()
|
Method Summary | |
---|---|
void |
addUserSessionId(String userSessionId,
String userId)
Add the User Session Id. |
Collection<SessionConfig> |
clearInactiveSessions(int minutes,
ITransaction transaction)
Remove sessions inactive for the specified amount of minutes. |
void |
deleteUserSessionByUserId(String userId)
Delete the User Session Id from the user id. |
void |
deleteUserSessionId(String userSessionId)
Delete the User Session Id. |
Collection<SessionConfig> |
getSessionsByUserId(String userId,
ITransaction transaction)
Returns a collection of active session objects for the given user. |
String |
getUserId(String userSessionId,
ITransaction transaction)
Get the user id. |
void |
keepSessionAlive(String sessionId)
Update the last access date for the given session. |
boolean |
validateUserLogin(String login,
String password,
ITransaction transaction)
Validade the user login. |
String |
validateUserSession(String userSessionId,
ITransaction transaction)
Validate the session of the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthenticationDaoJdbc()
Method Detail |
---|
public void addUserSessionId(String userSessionId, String userId) throws DaoException, PortalException
IAuthenticationDao
addUserSessionId
in interface IAuthenticationDao
DaoException
PortalException
public void deleteUserSessionId(String userSessionId) throws DaoException, PortalException
IAuthenticationDao
deleteUserSessionId
in interface IAuthenticationDao
DaoException
PortalException
public void deleteUserSessionByUserId(String userId) throws DaoException, PortalException
IAuthenticationDao
deleteUserSessionByUserId
in interface IAuthenticationDao
DaoException
PortalException
public String validateUserSession(String userSessionId, ITransaction transaction) throws DaoException, PortalException
IAuthenticationDao
validateUserSession
in interface IAuthenticationDao
userSessionId
- the user session id.transaction
- the transaction for persistence access.
DaoException
PortalException
public String getUserId(String userSessionId, ITransaction transaction) throws DaoException, PortalException
IAuthenticationDao
getUserId
in interface IAuthenticationDao
DaoException
PortalException
public boolean validateUserLogin(String login, String password, ITransaction transaction) throws DaoException, PortalException
IAuthenticationDao
validateUserLogin
in interface IAuthenticationDao
DaoException
PortalException
public void keepSessionAlive(String sessionId) throws PortalException
IAuthenticationDao
keepSessionAlive
in interface IAuthenticationDao
DaoException
PortalException
public Collection<SessionConfig> clearInactiveSessions(int minutes, ITransaction transaction) throws DaoException, PortalException
IAuthenticationDao
clearInactiveSessions
in interface IAuthenticationDao
minutes
- amount of minutes.transaction
- transaction for persistence access.
DaoException
PortalException
public Collection<SessionConfig> getSessionsByUserId(String userId, ITransaction transaction) throws PortalException
IAuthenticationDao
getSessionsByUserId
in interface IAuthenticationDao
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |