public interface IAuthenticationDao
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.
|
void addUserSessionId(String userSessionId, String userId) throws DaoException, PortalException
userSessionId
- userId
- DaoException
PortalException
void deleteUserSessionId(String userSessionId) throws DaoException, PortalException
userSessionId
- DaoException
PortalException
void deleteUserSessionByUserId(String userId) throws DaoException, PortalException
userId
- DaoException
PortalException
String validateUserSession(String userSessionId, ITransaction transaction) throws DaoException, PortalException
userSessionId
- the user session id.transaction
- the transaction for persistence access.DaoException
PortalException
String getUserId(String userSessionId, ITransaction transaction) throws DaoException, PortalException
userSessionId
- transaction
- DaoException
PortalException
boolean validateUserLogin(String login, String password, ITransaction transaction) throws DaoException, PortalException
login
- password
- transaction
- DaoException
PortalException
void keepSessionAlive(String sessionId) throws PortalException
sessionId
- DaoException
PortalException
Collection<SessionConfig> clearInactiveSessions(int minutes, ITransaction transaction) throws DaoException, PortalException
minutes
- amount of minutes.transaction
- transaction for persistence access.DaoException
PortalException
Collection<SessionConfig> getSessionsByUserId(String userId, ITransaction transaction) throws PortalException
userId
- transaction
- PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.