@RolesAllowed(value="ADMIN") public class UserService extends Object
| Constructor and Description |
|---|
UserService() |
| Modifier and Type | Method and Description |
|---|---|
es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.User |
create(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.User user)
Creates a new user
|
void |
remove(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.User user)
Deletes an user.
|
public es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.User create(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.User user)
user - a new user to be storedIllegalArgumentException - if user is nullpublic void remove(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.User user)
user - the user to be deleted.IllegalArgumentException - if user if null.javax.ejb.EJBAccessException - if the user is not the current user
does not have access to do this action.Copyright © 2017. All rights reserved.