public class AuthenticationDaoJdbc extends Object implements IAuthenticationDao
Constructor and Description |
---|
AuthenticationDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.