public class CompetitionService extends Object
| Constructor and Description |
|---|
CompetitionService() |
| Modifier and Type | Method and Description |
|---|---|
es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition |
create(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition competition)
Creates a new competition.
|
es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition |
getCompetition(String name)
Returns a competition identified by name as a parameter.
|
void |
remove(String name)
Logical deletion of the competition with the parameters name.
|
es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition |
update(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition competition)
Updates the information of a competition.
|
public es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition getCompetition(String name)
name - the name of a competition which identified it.null if there is no
competition with the specified name.public es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition create(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition competition)
competition - a new competition to be stored.IllegalArgumentException - if the competition is null.public es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition update(es.uvigo.esei.dgss.teamB.ligaaas.domain.entities.Competition competition)
competition - the competition to be updated.IllegalArgumentException - if the competition is null.public void remove(String name)
name - the name witch identifies the competition who wants to delete.javax.ejb.EJBAccessException - if the competition's administrator is not the current user.Copyright © 2017. All rights reserved.