mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-06 19:12:23 +00:00
whitespace and comment changes only
This commit is contained in:
1 parent
38a8e97d4f
commit
b4e3b10916
3 files changed
+5
-7
No files matched your search
+1
-6
@@ -224,7 +224,7 @@ public class RaceLogTrackingAdapterImpl implements RaceLogTrackingAdapter {
|
||||
}
|
||||
|
||||
private void revokeAlreadyDefinedMarks(RaceLog raceLog, AbstractLogEventAuthor author) {
|
||||
List<RaceLogEvent> markEvents = new AllEventsOfTypeFinder<>(raceLog, true, RaceLogDefineMarkEvent.class).analyze();
|
||||
List<RaceLogEvent> markEvents = new AllEventsOfTypeFinder<>(raceLog, /* only unrevoked */ true, RaceLogDefineMarkEvent.class).analyze();
|
||||
for (RaceLogEvent event : markEvents) {
|
||||
try {
|
||||
raceLog.revokeEvent(author, event, "removing mark that was already defined");
|
||||
@@ -239,7 +239,6 @@ public class RaceLogTrackingAdapterImpl implements RaceLogTrackingAdapter {
|
||||
RacingEventService service) {
|
||||
CourseBase course = new LastPublishedCourseDesignFinder(fromRaceLog).analyze();
|
||||
Set<Competitor> competitors = new RegisteredCompetitorsAnalyzer<>(fromRaceLog).analyze();
|
||||
|
||||
for (RaceLog toRaceLog : toRaceLogs) {
|
||||
if (course == null || ! new RaceLogTrackingStateAnalyzer(toRaceLog).analyze().isForTracking()) {
|
||||
continue;
|
||||
@@ -253,19 +252,15 @@ public class RaceLogTrackingAdapterImpl implements RaceLogTrackingAdapter {
|
||||
for (Waypoint oldWaypoint : course.getWaypoints()) {
|
||||
to.addWaypoint(i++, duplicateWaypoint(oldWaypoint, controlPointDuplicationCache, markDuplicationCache, baseDomainFactory));
|
||||
}
|
||||
|
||||
for (Mark mark : markDuplicationCache.values()) {
|
||||
RaceLogEvent event = RaceLogEventFactory.INSTANCE.createDefineMarkEvent(now, service.getServerAuthor(),
|
||||
toRaceLog.getCurrentPassId(), mark);
|
||||
toRaceLog.add(event);
|
||||
}
|
||||
|
||||
int passId = toRaceLog.getCurrentPassId();
|
||||
|
||||
RaceLogEvent newCourseEvent = RaceLogEventFactory.INSTANCE.createCourseDesignChangedEvent(
|
||||
now, service.getServerAuthor(), passId, to);
|
||||
toRaceLog.add(newCourseEvent);
|
||||
|
||||
registerCompetitors(service, toRaceLog, competitors);
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -492,6 +492,10 @@ public interface SailingService extends RemoteService, FileStorageManagementGwtS
|
||||
*/
|
||||
void pingMarkViaRaceLogTracking(String leaderboardName, String raceColumnName, String fleetName, MarkDTO mark, PositionDTO position);
|
||||
|
||||
/**
|
||||
* @param raceLogFrom identifies the race log to copy from by its leaderboard name, race column name and fleet name
|
||||
* @param raceLogsTo identifies the race log to copy from by their leaderboard name, race column name and fleet name
|
||||
*/
|
||||
void copyCourseAndCompetitorsToOtherRaceLogs(Util.Triple<String, String, String> raceLogFrom,
|
||||
Set<Util.Triple<String, String, String>> raceLogsTo);
|
||||
|
||||
|
||||
-1
@@ -5005,7 +5005,6 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
for (com.sap.sse.common.Util.Triple<String, String, String> toTriple : toTriples) {
|
||||
toRaceLogs.add(getRaceLog(toTriple));
|
||||
}
|
||||
|
||||
getRaceLogTrackingAdapter().copyCourseAndCompetitors(fromRaceLog, toRaceLogs, baseDomainFactory, getService());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user