| Constructor and Description |
|---|
UserApiLocal() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateUser(String activationId) |
String |
addUser(String username,
String email,
String password,
String firstName,
String lastName,
String institution) |
boolean |
correctCreds(String email,
String password) |
void |
editUser(eu.dnetlib.domain.functionality.UserProfile user) |
String |
getEmailFromUsername(String username) |
eu.dnetlib.domain.functionality.UserProfile |
getUser(String userIdentifier) |
eu.dnetlib.validator.commons.dao.users.UsersDAO |
getUsersDao() |
boolean |
isAdmin(String email) |
boolean |
isUserActivated(String email) |
String |
prepareResetPassword(String email) |
void |
resetPassword(String uuid,
String password) |
void |
setUsersDao(eu.dnetlib.validator.commons.dao.users.UsersDAO usersDao) |
boolean |
userExists(String email) |
boolean |
usernameExists(String username) |
@Transactional public boolean activateUser(String activationId) throws Exception
activateUser in interface UserApiException@Transactional(propagation=REQUIRED) public String addUser(String username, String email, String password, String firstName, String lastName, String institution) throws Exception
public boolean correctCreds(String email, String password) throws Exception
correctCreds in interface UserApiExceptionpublic boolean isUserActivated(String email) throws Exception
isUserActivated in interface UserApiException@Transactional(propagation=REQUIRED) public String prepareResetPassword(String email) throws Exception
prepareResetPassword in interface UserApiException@Transactional(propagation=REQUIRED) public void resetPassword(String uuid, String password) throws Exception
resetPassword in interface UserApiExceptionpublic boolean userExists(String email) throws Exception
userExists in interface UserApiExceptionpublic void editUser(eu.dnetlib.domain.functionality.UserProfile user)
throws Exception
public boolean usernameExists(String username) throws Exception
usernameExists in interface UserApiExceptionpublic String getEmailFromUsername(String username) throws Exception
getEmailFromUsername in interface UserApiExceptionpublic eu.dnetlib.domain.functionality.UserProfile getUser(String userIdentifier) throws Exception
public eu.dnetlib.validator.commons.dao.users.UsersDAO getUsersDao()
public void setUsersDao(eu.dnetlib.validator.commons.dao.users.UsersDAO usersDao)
Copyright © 2022. All rights reserved.