@PermitAll public class UserEJB extends Object
| Constructor and Description |
|---|
UserEJB() |
| Modifier and Type | Method and Description |
|---|---|
List<ligaaas.teamc.domain.User> |
findByEmail(String userEmail)
Returns a
List of User with the specified email. |
List<ligaaas.teamc.domain.User> |
findByLogin(String userLogin)
Returns the
User identified by id. |
ligaaas.teamc.domain.User |
registerUser(ligaaas.teamc.domain.User user)
Register a new
User. |
public List<ligaaas.teamc.domain.User> findByLogin(String userLogin)
User identified by id. If there is no User with
the specified id, null will be returned.userLogin. - The id of the user to be returned.User with the given id.IllegalArgumentException - if User login is nullpublic List<ligaaas.teamc.domain.User> findByEmail(String userEmail)
List of User with the specified email.userEmail. - The email of the User to be searched.List of User with the specified email.IllegalArgumentException - if User email is nullpublic ligaaas.teamc.domain.User registerUser(ligaaas.teamc.domain.User user)
User.user. - A new User to be registered.User is created with an notification sent to the email.javax.ejb.EJBAccessException - if the current User isn't anonymous.IllegalArgumentException - if User is nullIllegalArgumentException - if User login is already in use.IllegalArgumentException - if User email is already in use.Copyright © 2017. All rights reserved.