@RolesAllowed(value={"ADMIN","USER"}) public class PlayerService extends Object
| Constructor and Description |
|---|
PlayerService() |
| Modifier and Type | Method and Description |
|---|---|
es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player |
create(es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player player)
Creates a new player
|
es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player |
get(int id)
Returns the player identified by
id. |
List<es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player> |
list()
Returns the complete list of players
|
void |
remove(es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player player)
Deletes an player.
|
es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player |
update(es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player player)
Updates the information of this player.
|
@PermitAll public es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player create(es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player player)
player - a new player to be storedIllegalArgumentException - if player is nullpublic es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player get(int id)
id. If there is no player with the
specified id, null will be returned.id - the id of an player.null if there is no player
with the specified id.IllegalArgumentException - if id is null or it does not identifies a valid
player.public es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player update(es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player player)
player - a player to be updated.IllegalArgumentException - if player is null.public void remove(es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player player)
player - the player to be deleted.IllegalArgumentException - if player if null.javax.ejb.EJBAccessException - if the player is not the current player does not have access to
do this action.public List<es.uvigo.esei.dgss.teamb.ligaaas.domain.entities.Player> list()
Copyright © 2017. All rights reserved.