@Named(value="userTeams") @RequestScoped public class UserTeamsManagedBean extends Object
| Constructor and Description |
|---|
UserTeamsManagedBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
doAddPlayer()
Adds a
Player to the selected Team |
String |
doEditTeam()
Redirects to the page to edit the team
|
String |
doRegisterTeam()
Register a new team for the current
User |
String |
doRemoveTeam(ligaaas.teamc.domain.Team team)
Removes a team for the current User
|
void |
doSearchByDescription()
Performs a search of
Team given its description |
void |
doSearchByName()
Performs a search of
Team given its name |
void |
doSearchBySportType()
Performs a search of
Team given its SportType |
String |
doUpdateTeam()
Edit an existent team
|
List<ligaaas.teamc.domain.Player> |
getFilteredPlayers()
Returns the current filtered list of
Players |
ligaaas.teamc.domain.Team |
getNewTeam()
Return the
Team that will be persisted |
List<ligaaas.teamc.domain.Player> |
getPlayers()
Returns the current list of
Players |
ligaaas.teamc.domain.Team |
getSelectedTeam()
Return the
Team selected for edit |
boolean |
getShowTable()
Returns if the table can be show
|
ligaaas.teamc.domain.SportType[] |
getSportTypes()
Return an array of String values of
SportType to be used in
comboxes in the view |
String |
getTeamDescriptionSearch()
Return the description of the
Team that will be used in the
search |
String |
getTeamNameSearch()
Return the name of the
Team that will be used in the search |
List<ligaaas.teamc.domain.Team> |
getTeams()
Returns the current list of
Team of the user |
ligaaas.teamc.domain.SportType |
getTeamSportTypeSearch()
Return the
SportType of the Team that will be used in the
search |
void |
init() |
void |
setFilteredPlayers(List<ligaaas.teamc.domain.Player> filteredPlayers)
Sets the filtered list of
Players. |
void |
setNewTeam(ligaaas.teamc.domain.Team newTeam)
Sets the
Team that will be persisted |
void |
setPlayers(List<ligaaas.teamc.domain.Player> players)
Sets the list of
Players. |
void |
setSelectedTeam(ligaaas.teamc.domain.Team selectedTeam)
Sets the
Team that will be updated |
void |
setTeamDescriptionSearch(String teamDesciptionSearch)
Sets the description that will be used in the search
|
void |
setTeamNameSearch(String teamNameSearch)
Sets the name that will be used in the search
|
void |
setTeamSportTypeSearch(ligaaas.teamc.domain.SportType teamSportTypeSearch)
Sets the
SportType that will be used in the search |
@PostConstruct public void init()
public List<ligaaas.teamc.domain.Team> getTeams()
Team of the userTeam of the userpublic boolean getShowTable()
public String doRegisterTeam()
Userpublic String doEditTeam()
public String doUpdateTeam()
public String doRemoveTeam(ligaaas.teamc.domain.Team team)
team - the Team to be removed for the current Userpublic String doAddPlayer()
Player to the selected Teampublic ligaaas.teamc.domain.SportType[] getSportTypes()
SportType to be used in
comboxes in the viewSportType to be used in
comboxes in the viewpublic void doSearchByName()
Team given its namepublic void doSearchByDescription()
Team given its descriptionpublic void doSearchBySportType()
Team given its SportTypepublic String getTeamNameSearch()
Team that will be used in the searchTeampublic void setTeamNameSearch(String teamNameSearch)
teamNameSearch - the name that will be used in the searchpublic String getTeamDescriptionSearch()
Team that will be used in the
searchTeampublic void setTeamDescriptionSearch(String teamDesciptionSearch)
teamDesciptionSearch - the description that will be used in the searchpublic ligaaas.teamc.domain.SportType getTeamSportTypeSearch()
SportType of the Team that will be used in the
searchSportType of the Teampublic void setTeamSportTypeSearch(ligaaas.teamc.domain.SportType teamSportTypeSearch)
SportType that will be used in the searchteamSportTypeSearch - the SportType that will be used in the searchpublic ligaaas.teamc.domain.Team getNewTeam()
Team that will be persistedTeam that will be persistedpublic void setNewTeam(ligaaas.teamc.domain.Team newTeam)
Team that will be persistednewTeam - the Team that will be persistedpublic ligaaas.teamc.domain.Team getSelectedTeam()
Team selected for editTeam selectedpublic void setSelectedTeam(ligaaas.teamc.domain.Team selectedTeam)
Team that will be updatedselectedTeam - the Team that will be updatedpublic List<ligaaas.teamc.domain.Player> getPlayers()
PlayersPlayerspublic void setPlayers(List<ligaaas.teamc.domain.Player> players)
Players.players - the list of Players.public List<ligaaas.teamc.domain.Player> getFilteredPlayers()
PlayersPlayerspublic void setFilteredPlayers(List<ligaaas.teamc.domain.Player> filteredPlayers)
Players.filteredPlayers - the filtered list of Players.Copyright © 2018. All rights reserved.