public class UserDAO
extends java.lang.Object
| Constructor and Description |
|---|
UserDAO()
Build DAO-entity
|
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteUser(java.lang.String email)
deletes the
User with the given email as well as all the corresponding roles. |
static User |
getUser(java.lang.String email)
retrieves the
User by its email. |
static java.util.List<java.lang.String> |
listUsers()
retrieves the list of user emails registered.
|
public static User getUser(java.lang.String email)
User by its email.email - the emailpublic static java.util.List<java.lang.String> listUsers()
public static void deleteUser(java.lang.String email)
User with the given email as well as all the corresponding roles.email - the email of the user