@Named(value="competitionController") @ViewScoped public class CompetitionController extends Object implements Serializable
| Constructor and Description |
|---|
CompetitionController() |
| Modifier and Type | Method and Description |
|---|---|
void |
Acronym(String name)
Marks a competition as removed
|
void |
addNewCompetition()
Adds a new competition to the database
|
void |
clear()
Clears all attributes for realizing another operation
|
void |
fillOwnCompetitions()
Fill the filteredCompetitions with the own competitions
|
void |
fillOwnCompetitionsByLocation()
Fill the filteredCompetitions with the own competitions with a determinate location
|
void |
fillOwnCompetitionsByNameDescription()
Fill the filteredCompetitions with the own competitions with determinate name or
description
|
void |
fillOwnCompetitionsBySport()
Fill the filteredCompetitions with the own competitions with a kind of sport
determinate
|
String |
getAbbreviatedCompetitionName()
Gets the abbreviated name of competition which is treating
|
String |
getCompetitionName()
Gets the name of competition which is treating
|
boolean |
getCompetitionVisibility()
Gets the visibility of the competition which is treating
|
es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User |
getContact()
Gets the contact user of the competition which is treating
|
String |
getContactPersonEmail()
Gets the contact person email of competition which is treating
|
String |
getContactPersonName()
Gets the contact person name of competition which is treating
|
Principal |
getCurrentUser()
Gets the current user
|
Date |
getDeleted()
Gets the deleted date of the competition which is treating
|
String |
getDescription()
Gets the description of competition which is treating
|
String |
getDescriptionToSearch()
Gets the description used to realize a searching by description
|
String |
getErrorMessage()
Gets the error message
|
List<es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.Competition> |
getFilteredCompetitions()
Gets filtered competitions
|
String |
getLocation()
Gets the location of competition which is treating
|
String |
getLocationToSearch()
Gets the location to realize a searching by location
|
String |
getNameToSearch()
Gets the name of competition to realize a searching
|
int |
getNumMaxPlayers()
Gets the number max of players of the competition which is treating
|
int |
getNumMinPlayers()
Gets the number min of players of the competition which is treating
|
String |
getProvince()
Gets the province of competition which is treating
|
String |
getSportName()
Gets the sport name of competition which is treating
|
String |
getSportToSearch()
Gets the name of the sport which will be used to realize a searching by
sport
|
String |
getSuccessMessage()
Gets the success message
|
void |
setAbbreviatedCompetitionName(String abbreviatedCompetitionName)
Sets the abbreviated name of the competition which is treating
|
void |
setCompetitionName(String competitionName)
Sets the name of the competition which is treating
|
void |
setCompetitionVisibility(boolean competitionVisibility)
Sets the visibility of the competition which is treating
|
void |
setContact(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User contact)
Sets the contact of the competition which is treating
|
void |
setContactPersonEmail(String contactPersonEmail)
Sets the contact person email of the competition which is treating
|
void |
setContactPersonName(String contactPersonName)
Sets the contact person name of the competition which is treating
|
void |
setCurrentUser(Principal currentUser)
Sets the current user
|
void |
setDeleted(Date deleted)
Sets the date of deleted of the competition which is treating
|
void |
setDescription(String description)
Sets the description of the competition which is treating
|
void |
setDescriptionToSearch(String descriptionToSearch)
Sets the description to realize a searching by description
|
void |
setErrorMessage(String errorMessage)
Sets the error message
|
void |
setLocation(String location)
Sets the location of the competition which is treating
|
void |
setLocationToSearch(String locationToSearch)
Sets the location to realize a searching by location
|
void |
setNameToSearch(String nameToSearch)
Sets the name of a competition to realize a searching by name
|
void |
setNumMaxPlayers(int numMaxTeams)
Sets the number maximum of the players of the competition which is treating
|
void |
setNumMinPlayers(int numMinTeams)
Sets the number minimum of the players of the competition which is treating
|
void |
setProvince(String province)
Sets the province of the competition which is treating
|
void |
setSportName(String sportName)
Sets the sport name of the competition which is treating
|
void |
setSportToSearch(String sportToSearch)
Sets the name of sport to realize a searching by sport
|
void |
setSuccessMessage(String successMessage)
Sets the success message
|
public void fillOwnCompetitions()
public void fillOwnCompetitionsByNameDescription()
public void fillOwnCompetitionsBySport()
public void fillOwnCompetitionsByLocation()
public List<es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.Competition> getFilteredCompetitions()
public String getNameToSearch()
public void setNameToSearch(String nameToSearch)
nameToSearch - name of a competition to realize a searching by namepublic String getDescriptionToSearch()
public void setDescriptionToSearch(String descriptionToSearch)
descriptionToSearch - the description needed to realize a searching by descriptionpublic String getSportToSearch()
public void setSportToSearch(String sportToSearch)
sportToSearch - name of sport needed to realize a searching by sportpublic String getLocationToSearch()
public void setLocationToSearch(String locationToSearch)
locationToSearch - location of the competitions which to be searchedpublic void setCurrentUser(Principal currentUser)
currentUser - current userpublic Principal getCurrentUser()
public String getCompetitionName()
public void setCompetitionName(String competitionName)
competitionName - the name of a competition which will be treatedpublic String getAbbreviatedCompetitionName()
public void setAbbreviatedCompetitionName(String abbreviatedCompetitionName)
abbreviatedCompetitionName - the abbreviated name of a competition which will be treatedpublic String getDescription()
public void setDescription(String description)
description - the description of the competition which will be treatedpublic String getSportName()
public void setSportName(String sportName)
sportName - the sport name of the competition which will be treatedpublic String getLocation()
public void setLocation(String location)
location - the location of the competition which will be treatedpublic String getProvince()
public void setProvince(String province)
province - the province of a competition which will be treatedpublic String getContactPersonName()
public void setContactPersonName(String contactPersonName)
contactPersonName - the contact person name of a competition which will be treatedpublic String getContactPersonEmail()
public void setContactPersonEmail(String contactPersonEmail)
contactPersonEmail - the contact person email of a competition which will be treatedpublic int getNumMaxPlayers()
public void setNumMaxPlayers(int numMaxTeams)
numMaxTeams - the number maximum of the players of the competition which will be
treatedpublic int getNumMinPlayers()
public void setNumMinPlayers(int numMinTeams)
numMinTeams - the number minimum of the players of the competition which will be
treatedpublic boolean getCompetitionVisibility()
public void setCompetitionVisibility(boolean competitionVisibility)
competitionVisibility - the visibility of the competition which will be treatedpublic Date getDeleted()
public void setDeleted(Date deleted)
deleted - the date of deleted of the competition which will be treatedpublic es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User getContact()
public void setContact(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User contact)
contact - the contact of the competition which will be treatedpublic String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage - the error messagepublic String getSuccessMessage()
public void setSuccessMessage(String successMessage)
successMessage - the success messagepublic void Acronym(String name)
name - name of competition which will be deletedpublic void clear()
public void addNewCompetition()
Copyright © 2018. All rights reserved.