implemented 'shortName' attribute for Competitor to prepare to remove the misuse of the sailId for team names

This commit is contained in:
fmittag
2016-08-10 12:41:52 +02:00
parent 42c2564fc9
commit 74f43331a2
74 changed files with 271 additions and 153 deletions
@@ -201,6 +201,7 @@ public class StructureImporter {
Person person = (Person) obj;
String idAsString = person.getPersonID();
String name = person.getGivenName() + " " + person.getFamilyName();
String shortName = null; // Can we get a short name from Manage2Sail?
Color color = null;
String email = null;
URI flagImage = null;
@@ -208,7 +209,7 @@ public class StructureImporter {
.toString());
BoatAndTeam boatAndTeam = getBoatAndTeam(idAsString, name, nationality, boatClass);
this.baseDomainFactory.convertToCompetitorDTO(this.baseDomainFactory.getOrCreateCompetitor(
UUID.fromString(idAsString), name, color, email, flagImage, boatAndTeam.getTeam(), boatAndTeam.getBoat(),
UUID.fromString(idAsString), name, shortName, color, email, flagImage, boatAndTeam.getTeam(), boatAndTeam.getBoat(),
/* timeOnTimeFactor */ null, /* timeOnDistanceAllowancePerNauticalMile */ null, null));
} else {
break;