mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 11:23:50 +00:00
removed the no longer used getLeaderboardByName(String)
This commit is contained in:
1 parent
9b09275127
commit
04a263b892
3 files changed
+2
-17
No files matched your search
-2
@@ -74,8 +74,6 @@ public interface SailingService extends RemoteService {
|
||||
|
||||
List<LeaderboardDAO> getLeaderboards();
|
||||
|
||||
LeaderboardDAO getLeaderboardByName(String leaderboardName);
|
||||
|
||||
void updateLeaderboard(String leaderboardName, String newLeaderboardName, int[] newDiscardingThreasholds);
|
||||
|
||||
void createLeaderboard(String leaderboardName, int[] discardThresholds);
|
||||
|
||||
+2
-2
@@ -110,8 +110,6 @@ public interface SailingServiceAsync {
|
||||
|
||||
void getLeaderboards(AsyncCallback<List<LeaderboardDAO>> callback);
|
||||
|
||||
void getLeaderboardByName(String leaderboardName, AsyncCallback<LeaderboardDAO> callback);
|
||||
|
||||
void updateLeaderboard(String leaderboardName, String newLeaderboardName, int[] newDiscardingThreasholds,
|
||||
AsyncCallback<Void> callback);
|
||||
|
||||
@@ -171,6 +169,7 @@ public interface SailingServiceAsync {
|
||||
boolean trackWind, boolean correctWindByDeclination, AsyncCallback<Void> asyncCallback);
|
||||
|
||||
void sendSwissTimingDummyRace(String racMessage, String stlMesssage, String ccgMessage, AsyncCallback<Void> callback);
|
||||
|
||||
/**
|
||||
* Requests the computation of the {@link LeaderboardDAO} for <code>leaderboardName</code> <code>times</code> times.
|
||||
* The date used for the {@link #getLeaderboardByName(String, Date, Collection, AsyncCallback)} call is iterated
|
||||
@@ -182,6 +181,7 @@ public interface SailingServiceAsync {
|
||||
|
||||
void getCompetitorRaceData(RaceIdentifier race, CompetitorsAndTimePointsDAO competitorAndTimePointsDAO,
|
||||
DetailType dataType, AsyncCallback<List<Pair<CompetitorDAO, Double[]>>> callback);
|
||||
|
||||
void getDouglasPoints(RaceIdentifier raceIdentifier, Map<CompetitorDAO, Date> from, Map<CompetitorDAO, Date> to,
|
||||
double meters, AsyncCallback<Map<CompetitorDAO, List<GPSFixDAO>>> callback);
|
||||
|
||||
|
||||
-13
@@ -876,19 +876,6 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
|
||||
return results;
|
||||
}
|
||||
|
||||
public LeaderboardDAO getLeaderboardByName(String leaderboardName) {
|
||||
Leaderboard leaderboard = getService().getLeaderboardByName(leaderboardName);
|
||||
LeaderboardDAO dao = new LeaderboardDAO();
|
||||
dao.name = leaderboard.getName();
|
||||
dao.displayNames = new HashMap<CompetitorDAO, String>();
|
||||
for (RaceInLeaderboard raceColumn : leaderboard.getRaceColumns()) {
|
||||
dao.addRace(raceColumn.getName(), raceColumn.isMedalRace(), raceColumn.getTrackedRace() != null);
|
||||
}
|
||||
dao.hasCarriedPoints = leaderboard.hasCarriedPoints();
|
||||
dao.discardThresholds = leaderboard.getResultDiscardingRule().getDiscardIndexResultsStartingWithHowManyRaces();
|
||||
return dao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLeaderboard(String leaderboardName, String newLeaderboardName, int[] newDiscardingThreasholds) {
|
||||
if (!leaderboardName.equals(newLeaderboardName)) {
|
||||
|
||||
Reference in new issue
Block a user