in addition to the race column names for which to load details, added a parameter addOverallDetails

that controls whether a leaderboardDTO shall have overall details; the leaderboard cache and the
LiveLeaderboardUpdater consider this parameter in how they cache their DTOs.
This commit is contained in:
Axel Uhl committed 2014-04-24 19:13:05 +02:00
1 parent 17a16f4ecd
commit e19209a61c
13 files changed
+118 -71

No files matched your search

@@ -104,7 +104,7 @@ public class LeaderboardsResource extends AbstractSailingServerResource {
private JSONObject getLeaderboardJson(Leaderboard leaderboard, Triple<TimePoint, ResultStates, Integer> timePointAndResultStateAndMaxCompetitorsCount)
throws NoWindException, InterruptedException, ExecutionException {
LeaderboardDTO leaderboardDTO = leaderboard.getLeaderboardDTO(timePointAndResultStateAndMaxCompetitorsCount.getA(),
Collections.<String> emptyList(), getService(), getService().getBaseDomainFactory());
Collections.<String> emptyList(), /* addOverallDetails */ false, getService(), getService().getBaseDomainFactory());
TimePoint resultTimePoint = timePointAndResultStateAndMaxCompetitorsCount.getA();
ResultStates resultState = timePointAndResultStateAndMaxCompetitorsCount.getB();