mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-24 14:38:45 +00:00
bug5287: fixed refactoring artifacts; fixed MDI messages for event ID
This commit is contained in:
+18
-20
@@ -24,14 +24,12 @@ public class MasterDataImportObjectCreationCountImpl implements MasterDataImport
|
||||
private int regattaCount = 0;
|
||||
private int mediaTrackCount = 0;
|
||||
private int trackedRacesCount = 0;
|
||||
|
||||
private Set<String> createdLeaderboards = new HashSet<String>();
|
||||
private Set<String> createdLeaderboardGroups = new HashSet<String>();
|
||||
private Set<String> createdEvents = new HashSet<String>();
|
||||
private Set<String> createdRegattas = new HashSet<String>();
|
||||
private Set<String> createdTrackedRaces = new HashSet<String>();
|
||||
|
||||
private Set<String> overwrittenRegattas = new HashSet<String>();
|
||||
private Set<String> createdLeaderboards = new HashSet<>();
|
||||
private Set<String> createdLeaderboardGroups = new HashSet<>();
|
||||
private Set<String> createdEvents = new HashSet<>();
|
||||
private Set<String> createdRegattas = new HashSet<>();
|
||||
private Set<String> createdTrackedRaces = new HashSet<>();
|
||||
private Set<String> overwrittenRegattas = new HashSet<>();
|
||||
|
||||
//For GWT serialization
|
||||
public MasterDataImportObjectCreationCountImpl() {};
|
||||
@@ -46,18 +44,18 @@ public class MasterDataImportObjectCreationCountImpl implements MasterDataImport
|
||||
leaderboardGroupCount++;
|
||||
}
|
||||
|
||||
public void addOneEvent(String id) {
|
||||
createdEvents.add(id);
|
||||
public void addOneEvent(String idAsString) {
|
||||
createdEvents.add(idAsString);
|
||||
eventCount++;
|
||||
}
|
||||
|
||||
public void addOneRegatta(String id) {
|
||||
createdRegattas.add(id);
|
||||
public void addOneRegatta(String idAsString) {
|
||||
createdRegattas.add(idAsString);
|
||||
regattaCount++;
|
||||
}
|
||||
|
||||
public void addOneTrackedRace(String id) {
|
||||
createdTrackedRaces.add(id);
|
||||
public void addOneTrackedRace(String idAsString) {
|
||||
createdTrackedRaces.add(idAsString);
|
||||
trackedRacesCount++;
|
||||
}
|
||||
|
||||
@@ -87,16 +85,16 @@ public class MasterDataImportObjectCreationCountImpl implements MasterDataImport
|
||||
return createdLeaderboardGroups.contains(name);
|
||||
}
|
||||
|
||||
public boolean alreadyAddedEventWithId(String id) {
|
||||
return createdEvents.contains(id);
|
||||
public boolean alreadyAddedEventWithId(String idAsString) {
|
||||
return createdEvents.contains(idAsString);
|
||||
}
|
||||
|
||||
public boolean alreadyAddedRegattaWithId(String id) {
|
||||
return createdRegattas.contains(id);
|
||||
public boolean alreadyAddedRegattaWithId(String idAsString) {
|
||||
return createdRegattas.contains(idAsString);
|
||||
}
|
||||
|
||||
public boolean alreadyAddedTrackedRaceWithId(String id) {
|
||||
return createdTrackedRaces.contains(id);
|
||||
public boolean alreadyAddedTrackedRaceWithId(String idAsString) {
|
||||
return createdTrackedRaces.contains(idAsString);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user