| Modifier and Type | Method and Description |
|---|---|
List<Team> |
Player.getTeam()
Returns the team of this user
|
Collection<Team> |
User.getTeams()
Returns the user that belongs to this user.
|
List<Team> |
Competition.getTeams()
Returns the teams of the competition
|
Collection<Team> |
Headquarter.getTeams()
Returns the teams that belongs to this headquarters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
User.addTeam(Team team)
Adds a team to this user
|
void |
Player.addTeam(Team team)
Adds a team to this player
|
void |
Competition.addTeam(Team team)
Adds a team to the Competition
|
void |
Headquarter.addTeam(Team team)
Adds a team to this headquarters
|
boolean |
Player.belongsToTeam(Team team)
Check if this player belongs to a team
|
boolean |
User.hasOwner(Team team)
Checks if the team already has an owner
|
void |
User.internalAddTeam(Team team)
Adds a team directly to the teams collection of this user if the team does
not already belongs to this user
|
void |
User.internalRemoveTeam(Team team)
Removes a team directly to this teams collection of this user if the team
does not already belongs to this headquarters
|
boolean |
User.ownsTeam(Team team)
Checks if a team belongs to this user
|
boolean |
Competition.ownsTeam(Team team)
Check if the player belongs to this team
|
boolean |
Headquarter.ownsTeam(Team team)
Checks if a team belongs to this headquarters
|
void |
User.removeTeam(Team team)
Removes a team from this user
|
void |
Player.removeTeam(Team team)
Removes a team from this player
|
void |
Competition.removeTeam(Team team)
Removes a team to the Competition
|
void |
Headquarter.removeTeam(Team team)
Removes a team from this headquarters
|
| Modifier and Type | Method and Description |
|---|---|
void |
Competition.setTeams(List<Team> teams)
Sets the teams of the competition
|
| Constructor and Description |
|---|
Headquarter(String name,
String description,
String address,
String locality,
String province,
User admin,
Team... teams)
Creates a new instance of
Headquarter. |
User(String login,
String password,
String email,
String name,
String surname,
GregorianCalendar birthdate,
IdentificationType identificationType,
String numIdentificationType,
String residence,
String location,
String province,
String country,
String phone,
String facebook,
String twitter,
String instagram,
Player player,
List<Player> managedPlayers,
List<Competition> managedCompetitions,
Team... teams)
Creates a new instance
User |
| Constructor and Description |
|---|
Competition(String name,
String abbreviation,
String description,
SportType sport,
CompetitionType type,
String contactPerson,
String email,
String web,
String telephone,
String facebook,
String twitter,
String instagram,
Boolean openToInscription,
Boolean publicVisibility,
Integer minTeams,
Integer maxTeams,
User admin,
List<Team> teams,
List<Headquarter> headquarters,
List<Team> competitors)
Creates a new instance
Competition |
Competition(String name,
String abbreviation,
String description,
SportType sport,
CompetitionType type,
String contactPerson,
String email,
String web,
String telephone,
String facebook,
String twitter,
String instagram,
Boolean openToInscription,
Boolean publicVisibility,
Integer minTeams,
Integer maxTeams,
User admin,
List<Team> teams,
List<Headquarter> headquarters,
List<Team> competitors)
Creates a new instance
Competition |
Copyright © 2017. All rights reserved.