| Modifier and Type | Method and Description |
|---|---|
Player |
User.getPlayerUser()
Returns the player of this user
|
| Modifier and Type | Method and Description |
|---|---|
List<Player> |
User.getManagedPlayers()
Returns the players managed by the user
|
Collection<Player> |
Team.getPlayers()
Returns the players that belongs to this team.
|
| Modifier and Type | Method and Description |
|---|---|
void |
User.addPlayer(Player player)
Creates the relation between the user and the player.
|
void |
Team.addPlayer(Player player)
Adds a player to this team
|
void |
User.internalAddPlayer(Player player)
Adds a player directly to the players collection of this user
|
void |
User.internalAddPlayerList(Player player)
Adds a player directly to the player list of this user if the player does not
already managed by this user.
|
void |
User.internalRemovePlayerList(Player player)
Removes a player directly from the players list of this user.
|
boolean |
User.managesPlayers(Player player)
Checks if a player is managed by the user.
|
boolean |
Team.ownsPlayer(Player player)
Check if the player belongs to this team
|
void |
User.removePlayer(Player player)
Deletes the relation between the user and the player.
|
void |
Team.removePlayer(Player player)
Removes a player from this team
|
void |
User.setPlayerUser(Player userPlayer)
Sets the player of this user
|
| Modifier and Type | Method and Description |
|---|---|
void |
User.setManagedPlayers(List<Player> managedPlayers)
Sets the players managed by the user
|
| Constructor and Description |
|---|
Team(String nameTeam,
String nickTeam,
String descriptionTeam,
SportType sportType,
Headquarter headquarter,
String contactPerson,
String email,
String web,
String phone,
String socialMedia,
boolean openToInscription,
int minPlayers,
int maxPlayers,
boolean isVisible,
User user,
Player... players)
Creates a new instance
Team |
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,
HashMap<String,String> socialNetworks,
Player player,
List<Player> managedPlayers,
List<Competition> managedCompetitions,
Team... teams)
Creates a new instance
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,
HashMap<String,String> socialNetworks,
Player player,
List<Player> managedPlayers,
List<Competition> managedCompetitions,
Team... teams)
Creates a new instance
User |
Copyright © 2017. All rights reserved.