@Named(value="teamController") @ViewScoped public class TeamController extends Object implements Serializable
| Constructor and Description |
|---|
TeamController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewTeam()
Adds a new team to the database
|
void |
clear()
Clears all attributes for realizing another operation
|
void |
fillOwnTeams()
Fill the filteredTeams with the own teams
|
void |
fillOwnTeamsByLocation()
Fill the filteredTeams with the own teams with a determinate location
|
void |
fillOwnTeamsByNameDescription()
Fill the filteredTeams with the own teams with determinate name or
description
|
void |
fillOwnTeamsBySport()
Fill the filteredTeams with the own teams with a kind of sport
determinate
|
String |
getAbbreviatedTeamName()
Gets the abbreviated name of team which is treating
|
String |
getContactPersonEmail()
Gets the contact person email of team which is treating
|
String |
getContactPersonName()
Gets the contact person name of team which is treating
|
Principal |
getCurrentUser()
Gets the current user
|
Date |
getDeleted()
Gets the deleted date of the team which is treating
|
String |
getDescription()
Gets the description of team 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.Team> |
getFilteredTeams()
Gets filtered teams
|
String |
getLocation()
Gets the location of team which is treating
|
String |
getLocationToSearch()
Gets the location to realize a searching by location
|
es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User |
getManager()
Gets the manager user of the team which is treating
|
String |
getNameToSearch()
Gets the name of team to realize a searching
|
int |
getNumMaxPlayers()
Gets the number max of players of the team which is treating
|
int |
getNumMinPlayers()
Gets the number min of players of the team which is treating
|
String |
getProvince()
Gets the province of team which is treating
|
String |
getSportName()
Gets the sport name of team 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
|
String |
getTeamName()
Gets the name of team which is treating
|
es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.TeamVisibility |
getTeamVisibility()
Gets the visibility of the team which is treating
|
void |
remove(String name)
Marks a team as removed
|
void |
setAbbreviatedTeamName(String abbreviatedTeamName)
Sets the abbreviated name of the team which is treating
|
void |
setContactPersonEmail(String contactPersonEmail)
Sets the contact person email of the team which is treating
|
void |
setContactPersonName(String contactPersonName)
Sets the contact person name of the team which is treating
|
void |
setCurrentUser(Principal currentUser)
Sets the current user
|
void |
setDeleted(Date deleted)
Sets the date of deleted of the team which is treating
|
void |
setDescription(String description)
Sets the description of the team 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 team which is treating
|
void |
setLocationToSearch(String locationToSearch)
Sets the location to realize a searching by location
|
void |
setManager(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User manager)
Sets the manager of the team which is treating
|
void |
setNameToSearch(String nameToSearch)
Sets the name of a team to realize a searching by name
|
void |
setNumMaxPlayers(int numMaxPlayers)
Sets the number maximum of the players of the team which is treating
|
void |
setNumMinPlayers(int numMinPlayers)
Sets the number minimum of the players of the team which is treating
|
void |
setProvince(String province)
Sets the province of the team which is treating
|
void |
setSportName(String sportName)
Sets the sport name of the team 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
|
void |
setTeamName(String teamName)
Sets the name of the team which is treating
|
void |
setTeamVisibility(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.TeamVisibility teamVisibility)
Sets the visibility of the team which is treating
|
public void fillOwnTeams()
public void fillOwnTeamsByNameDescription()
public void fillOwnTeamsBySport()
public void fillOwnTeamsByLocation()
public List<es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.Team> getFilteredTeams()
public String getNameToSearch()
public void setNameToSearch(String nameToSearch)
nameToSearch - name of a team 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 teams which to be searchedpublic void setCurrentUser(Principal currentUser)
currentUser - current userpublic Principal getCurrentUser()
public String getTeamName()
public void setTeamName(String teamName)
teamName - the name of a team which will be treatedpublic String getAbbreviatedTeamName()
public void setAbbreviatedTeamName(String abbreviatedTeamName)
abbreviatedTeamName - the abbreviated name of a team which will be treatedpublic String getDescription()
public void setDescription(String description)
description - the description of the team which will be treatedpublic String getSportName()
public void setSportName(String sportName)
sportName - the sport name of the team which will be treatedpublic String getLocation()
public void setLocation(String location)
location - the location of the team which will be treatedpublic String getProvince()
public void setProvince(String province)
province - the province of a team which will be treatedpublic String getContactPersonName()
public void setContactPersonName(String contactPersonName)
contactPersonName - the contact person name of a team which will be treatedpublic String getContactPersonEmail()
public void setContactPersonEmail(String contactPersonEmail)
contactPersonEmail - the contact person email of a team which will be treatedpublic int getNumMaxPlayers()
public void setNumMaxPlayers(int numMaxPlayers)
numMaxPlayers - the number maximum of the players of the team which will be
treatedpublic int getNumMinPlayers()
public void setNumMinPlayers(int numMinPlayers)
numMinPlayers - the number minimum of the players of the team which will be
treatedpublic es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.TeamVisibility getTeamVisibility()
public void setTeamVisibility(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.TeamVisibility teamVisibility)
teamVisibility - the visibility of the team which will be treatedpublic Date getDeleted()
public void setDeleted(Date deleted)
deleted - the date of deleted of the team which will be treatedpublic es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User getManager()
public void setManager(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.User manager)
manager - the manager of the team 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 remove(String name)
name - name of team which will be deletedpublic void clear()
public void addNewTeam()
Copyright © 2018. All rights reserved.