| Constructor and Description |
|---|
UserApiLdapImpl() |
| 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) |
boolean |
isAdmin(String email) |
boolean |
isUserActivated(String email) |
String |
prepareResetPassword(String email) |
void |
resetPassword(String uuid,
String password) |
void |
setLdapAddress(String ldapAddress) |
void |
setLdapPassword(String ldapPassword) |
void |
setLdapPort(int ldapPort) |
void |
setLdapUsername(String ldapUsername) |
void |
setLdapUsersDN(String ldapUsersDN) |
boolean |
userExists(String email) |
boolean |
usernameExists(String username) |
public boolean activateUser(String activationId) throws Exception
activateUser in interface UserApiExceptionpublic 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 void editUser(eu.dnetlib.domain.functionality.UserProfile user)
throws Exception
public eu.dnetlib.domain.functionality.UserProfile getUser(String userIdentifier) throws Exception
public boolean isUserActivated(String email) throws Exception
isUserActivated in interface UserApiExceptionpublic String prepareResetPassword(String email) throws Exception
prepareResetPassword in interface UserApiExceptionpublic void resetPassword(String uuid, String password) throws Exception
resetPassword in interface UserApiExceptionpublic boolean userExists(String email) throws Exception
userExists in interface UserApiExceptionpublic boolean usernameExists(String username) throws Exception
usernameExists in interface UserApiExceptionpublic String getEmailFromUsername(String username) throws Exception
getEmailFromUsername in interface UserApiExceptionpublic void setLdapPort(int ldapPort)
public void setLdapAddress(String ldapAddress)
public void setLdapUsername(String ldapUsername)
public void setLdapPassword(String ldapPassword)
public void setLdapUsersDN(String ldapUsersDN)
Copyright © 2017. All rights reserved.