public class UsersDAOimpl extends AbstractDAO<eu.dnetlib.domain.functionality.UserProfile> implements UsersDAO
datasource, logger| Constructor and Description |
|---|
UsersDAOimpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateUser(String activation_id) |
boolean |
checkCorrectCreds(String email,
String password) |
eu.dnetlib.domain.functionality.UserProfile |
get(int id) |
eu.dnetlib.domain.functionality.UserProfile |
get(String email) |
protected PreparedStatement |
getDeleteStatement(int id,
Connection con) |
protected PreparedStatement |
getInsertStatement(eu.dnetlib.domain.functionality.UserProfile t,
Connection con) |
protected int |
getLastId() |
protected PreparedStatement |
getUpdateStatement(eu.dnetlib.domain.functionality.UserProfile t,
Connection con) |
boolean |
isActivated(String email) |
boolean |
isAdmin(String email) |
boolean |
isRepoAdmin(String email) |
void |
prepareResetPassword(String uuid,
String email) |
void |
ResetPassword(String uuid,
String password) |
boolean |
userExists(String email) |
boolean |
usernameExists(String username) |
closeConnection, delete, getConnection, getDatasource, save, setDatasourceprotected PreparedStatement getUpdateStatement(eu.dnetlib.domain.functionality.UserProfile t, Connection con) throws SQLException
getUpdateStatement in class AbstractDAO<eu.dnetlib.domain.functionality.UserProfile>SQLExceptionprotected PreparedStatement getInsertStatement(eu.dnetlib.domain.functionality.UserProfile t, Connection con) throws SQLException
getInsertStatement in class AbstractDAO<eu.dnetlib.domain.functionality.UserProfile>SQLExceptionprotected PreparedStatement getDeleteStatement(int id, Connection con) throws SQLException
getDeleteStatement in class AbstractDAO<eu.dnetlib.domain.functionality.UserProfile>SQLExceptionprotected int getLastId()
throws SQLException
getLastId in class AbstractDAO<eu.dnetlib.domain.functionality.UserProfile>SQLExceptionpublic eu.dnetlib.domain.functionality.UserProfile get(String email) throws DaoException
get in interface UsersDAODaoExceptionpublic boolean activateUser(String activation_id) throws DaoException
activateUser in interface UsersDAODaoExceptionpublic eu.dnetlib.domain.functionality.UserProfile get(int id)
public boolean checkCorrectCreds(String email, String password) throws DaoException
checkCorrectCreds in interface UsersDAODaoExceptionpublic boolean isAdmin(String email) throws DaoException
isAdmin in interface UsersDAODaoExceptionpublic boolean isRepoAdmin(String email) throws DaoException
isRepoAdmin in interface UsersDAODaoExceptionpublic boolean isActivated(String email) throws DaoException
isActivated in interface UsersDAODaoExceptionpublic boolean userExists(String email) throws DaoException
userExists in interface UsersDAODaoExceptionpublic boolean usernameExists(String username) throws DaoException
usernameExists in interface UsersDAODaoExceptionpublic void prepareResetPassword(String uuid, String email) throws DaoException
prepareResetPassword in interface UsersDAODaoExceptionpublic void ResetPassword(String uuid, String password) throws DaoException
ResetPassword in interface UsersDAODaoExceptionCopyright © 2021. All rights reserved.