@Named(value="userTeams") @RequestScoped public class UserTeamsManagedBean extends Object
| Constructor and Description |
|---|
UserTeamsManagedBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
doRegisterTeam()
Register a new team for the current
User |
void |
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 |
ligaaas.teamc.domain.Team |
getNewTeam()
Return the
Team that will be persisted |
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 |
setNewTeam(ligaaas.teamc.domain.Team newTeam)
Sets the
Team that will be persisted |
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 void doRegisterTeam()
Userpublic void doRemoveTeam(ligaaas.teamc.domain.Team team)
team - the Team to be removed for the current Userpublic 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 persistedCopyright © 2017. All rights reserved.