public class UserEJB extends Object
| Constructor and Description |
|---|
UserEJB() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerUser(es.uvigo.esei.dgss.letta.domain.entities.Registration registration)
Register an user
|
es.uvigo.esei.dgss.letta.domain.entities.Registration |
registrationWithLogin(String login)
Finds a registration by login
|
boolean |
userConfirmation(String uuid)
Confirms a user registration
|
es.uvigo.esei.dgss.letta.domain.entities.User |
userWithLogin(String login)
Finds a user by login in the User table
|
@PermitAll public void registerUser(es.uvigo.esei.dgss.letta.domain.entities.Registration registration) throws LoginDuplicateException, EmailDuplicateException, javax.mail.MessagingException
registration - indicates the user to registerLoginDuplicateException - if the user login already existsEmailDuplicateException - if the user email already existsjavax.mail.MessagingException - exception thrown by the Messaging classes@PermitAll public boolean userConfirmation(String uuid)
uuid - indicates the user uuiduuid doesn't existpublic es.uvigo.esei.dgss.letta.domain.entities.User userWithLogin(String login)
login - indicates the user with loginpublic es.uvigo.esei.dgss.letta.domain.entities.Registration registrationWithLogin(String login)
login - indicates the user with loginCopyright © 2015. All rights reserved.