public class UserEJB extends Object
| Constructor and Description |
|---|
UserEJB() |
| Modifier and Type | Method and Description |
|---|---|
es.uvigo.esei.dgss.letta.domain.entities.User |
findUserByEmail(String email) |
es.uvigo.esei.dgss.letta.domain.entities.Registration |
findUserInRegistration(String login,
String email)
Check if a user exists with the user
login and email |
boolean |
registerUser(es.uvigo.esei.dgss.letta.domain.entities.User user)
Registers a user
|
boolean |
userConfirmation(String uuid)
Confirms a user registration
|
@PermitAll public boolean registerUser(es.uvigo.esei.dgss.letta.domain.entities.User user) throws javax.persistence.EntityExistsException
user - indicates the user to registerjavax.persistence.EntityExistsException - if the login already exists@PermitAll public boolean userConfirmation(String uuid)
uuid - indicates the user uuiduuid doesn't existpublic es.uvigo.esei.dgss.letta.domain.entities.User findUserByEmail(String email)
email - indicates the user emailemailCopyright © 2015. All rights reserved.