mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-10 04:51:07 +00:00
bug3484 added and modified JavaDocs in services
This commit is contained in:
1 parent
2e29d9e791
commit
f4875b2792
4 files changed
+49
-8
No files matched your search
+1
-1
@@ -706,6 +706,6 @@ public interface SailingService extends RemoteService, FileStorageManagementGwtS
|
||||
PairingListDTO getPairingListFromRaceLogs(final String leaderboardName)
|
||||
throws NotFoundException;
|
||||
|
||||
void fillRaceLogsFromPairingListTemplate(PairingListTemplateDTO pairingListTemplateDTO, final String leaderboardName)
|
||||
void fillRaceLogsFromPairingListTemplate(final String leaderboardName, final int flightMultiplier)
|
||||
throws NotFoundException, CompetitorRegistrationOnRaceLogDisabledException;
|
||||
}
|
||||
+36
-2
@@ -103,6 +103,7 @@ import com.sap.sse.gwt.client.filestorage.FileStorageManagementGwtServiceAsync;
|
||||
import com.sap.sse.gwt.client.media.ImageDTO;
|
||||
import com.sap.sse.gwt.client.media.VideoDTO;
|
||||
import com.sap.sse.gwt.client.replication.RemoteReplicationServiceAsync;
|
||||
import com.sap.sse.pairinglist.PairingListTemplate;
|
||||
|
||||
/**
|
||||
* The async counterpart of {@link SailingService}
|
||||
@@ -874,15 +875,48 @@ public interface SailingServiceAsync extends ServerInfoRetriever, FileStorageMan
|
||||
|
||||
void addOrReplaceExpeditionDeviceConfiguration(ExpeditionDeviceConfiguration expeditionDeviceConfiguration, AsyncCallback<Void> asyncCallback);
|
||||
|
||||
/**
|
||||
* Calculates a {@link PairingListTemplate} based on a competitor count, flight count and group count of the
|
||||
* leaderboard. Since the competitor count must not be the competitors that are registered on the leaderboard, it can
|
||||
* vary.
|
||||
*
|
||||
* @param leaderboardName the name of the leaderboard
|
||||
* @param competitorCount the count of competitors
|
||||
* @param flightMultiplier specifies how often the flights will be cloned
|
||||
* @param callback returns a {@link PairingListTemplateDTO}
|
||||
* @throws NotFoundException is thrown if the leaderboard is not found by name
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
void calculatePairingList(final String leaderboardName, int competitorCount, int flightMultiplier,
|
||||
AsyncCallback<PairingListTemplateDTO> callback) throws NotFoundException,IllegalArgumentException ;
|
||||
AsyncCallback<PairingListTemplateDTO> callback) throws NotFoundException, IllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Creates a {@link PairingListDTO} in which the competitors will be matched to a {@link PairingList} based on
|
||||
* the information that the {@link PairingListTemplate} contains.
|
||||
*
|
||||
* @param leaderboardName
|
||||
* @param flightMultiplier specifies how often the flights will be cloned
|
||||
* @param callback
|
||||
*/
|
||||
void getPairingListFromTemplate(final String leaderboardName, final int flightMultiplier,
|
||||
AsyncCallback<PairingListDTO> callback);
|
||||
|
||||
/**
|
||||
* Creates a {@link PairingListDTO} that is based on the competitors in the race logs of a leaderboard.
|
||||
*
|
||||
* @param leaderboardName the name of the leaderboard
|
||||
* @param callback returns a {@link PairingListDTO}
|
||||
*/
|
||||
void getPairingListFromRaceLogs(final String leaderboardName, AsyncCallback<PairingListDTO> callback);
|
||||
|
||||
void fillRaceLogsFromPairingListTemplate(PairingListTemplateDTO pairingListTemplateDTO, final String leaderboardName,
|
||||
/**
|
||||
* Registers all competitors of a {@link PairingList} in the respective {@link RaceColumn}s and {@link Fleet}s.
|
||||
*
|
||||
* @param leaderboardName the name of the leaderboard
|
||||
* @param flightMultiplier specifies how often the flights will be cloned
|
||||
* @param callback
|
||||
*/
|
||||
void fillRaceLogsFromPairingListTemplate(final String leaderboardName, final int flightMultiplier,
|
||||
AsyncCallback<Void> callback);
|
||||
|
||||
}
|
||||
+2
-2
@@ -6914,8 +6914,8 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillRaceLogsFromPairingListTemplate(PairingListTemplateDTO pairingListTemplateDTO,
|
||||
final String leaderboardName) throws NotFoundException, CompetitorRegistrationOnRaceLogDisabledException {
|
||||
public void fillRaceLogsFromPairingListTemplate(final String leaderboardName, final int flightMultiplier)
|
||||
throws NotFoundException, CompetitorRegistrationOnRaceLogDisabledException {
|
||||
|
||||
Leaderboard leaderboard = getLeaderboardByName(leaderboardName);
|
||||
|
||||
|
||||
@@ -820,13 +820,20 @@ public interface RacingEventService extends TrackedRegattaRegistry, RegattaFetch
|
||||
/**
|
||||
* Returns a calculated {@link PairingListTemplate}, specified by flights, groups and competitors.
|
||||
*
|
||||
* @param regattaIdentifier {@link RegattaIdentifier} that specifies the flights and groups
|
||||
* @param competitorsCount count of competitor that is given by a dialog
|
||||
* @param flightMultiplier
|
||||
* @param leaderboardName the name of the leaderboard
|
||||
* @param competitorsCount count of competitor
|
||||
* @param flightMultiplier specifies how often the flights will be cloned
|
||||
* @return calculated {@link PairingListTemplate}
|
||||
*/
|
||||
PairingListTemplate createPairingListFromRegatta(final String leaderboardName, final int competitorsCount, final int flightMultiplier);
|
||||
|
||||
/**
|
||||
* Matches the competitors of a leaderboard to the {@link PairingList}
|
||||
*
|
||||
* @param pairingListTemplate the returned {@link PairingList} is based upon it
|
||||
* @param leaderboardName name of the leaderboard
|
||||
* @return {@link PairingList} that contains competitor objects matched to {@link RaceColumn}s and {@link Fleet}s
|
||||
*/
|
||||
PairingList<RaceColumn, Fleet, Competitor> getPairingListFromTemplate(PairingListTemplate pairingListTemplate,
|
||||
final String leaderboardName);
|
||||
}
|
||||
Reference in new issue
Block a user