| Modifier and Type | Method and Description |
|---|---|
Collection<Competition> |
Headquarter.getCompetitions()
Returns the competitions that belongs to this headquarters.
|
List<Competition> |
User.getManagedCompetitions()
Returns the competitions managed by the user
|
| Modifier and Type | Method and Description |
|---|---|
void |
User.addCompetition(Competition competition)
Creates the relation between the user and the competition.
|
void |
Headquarter.addCompetition(Competition competition)
Adds a competition from this headquarters
|
void |
Team.addCompetition(Competition competition)
Adds a competition to this team
|
boolean |
Team.belongsToCompetition(Competition competition)
Check if this team belongs to a competition
|
void |
User.internalAddCompetition(Competition competition)
Adds a competition directly to the competition list of this user if the
competition does not already managed by this user.
|
void |
User.internalRemoveCompetition(Competition competition)
Removes a competition directly from the competitions list of this user.
|
boolean |
User.managesCompetition(Competition competition)
Checks if a competition is managed by the user.
|
void |
User.removeCompetition(Competition competition)
Deletes the relation between the user and the competition.
|
void |
Headquarter.removeCompetition(Competition competition)
Removes a competition from this headquarters and removes this headquarters
from the competition.
|
void |
Team.removeCompetition(Competition competition)
Removes a competition from this team
|
| Modifier and Type | Method and Description |
|---|---|
void |
Headquarter.setCompetitions(ArrayList<Competition> competitions)
Adds a list of competitions to the headquarters
|
void |
User.setManagedCompetitions(List<Competition> managedCompetitions)
Sets the competitions managed by the user
|
| Constructor and Description |
|---|
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 |
Copyright © 2017. All rights reserved.