mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-02 17:19:37 +00:00
Added JavaDoc to GetRegattaListViewAction class
This commit is contained in:
1 parent
55d1583409
commit
ea9cce017d
1 file changed
+18
-1
+18
-1
@@ -9,13 +9,24 @@ import com.sap.sailing.gwt.home.communication.SailingAction;
|
|||||||
import com.sap.sailing.gwt.home.communication.SailingDispatchContext;
|
import com.sap.sailing.gwt.home.communication.SailingDispatchContext;
|
||||||
import com.sap.sailing.gwt.home.communication.regatta.RegattaWithProgressDTO;
|
import com.sap.sailing.gwt.home.communication.regatta.RegattaWithProgressDTO;
|
||||||
import com.sap.sailing.gwt.home.server.EventActionUtil;
|
import com.sap.sailing.gwt.home.server.EventActionUtil;
|
||||||
import com.sap.sailing.gwt.home.server.LeaderboardContext;
|
|
||||||
import com.sap.sailing.gwt.home.server.EventActionUtil.LeaderboardCallback;
|
import com.sap.sailing.gwt.home.server.EventActionUtil.LeaderboardCallback;
|
||||||
|
import com.sap.sailing.gwt.home.server.LeaderboardContext;
|
||||||
import com.sap.sse.common.Duration;
|
import com.sap.sse.common.Duration;
|
||||||
import com.sap.sse.gwt.dispatch.shared.caching.IsClientCacheable;
|
import com.sap.sse.gwt.dispatch.shared.caching.IsClientCacheable;
|
||||||
import com.sap.sse.gwt.dispatch.shared.commands.ResultWithTTL;
|
import com.sap.sse.gwt.dispatch.shared.commands.ResultWithTTL;
|
||||||
import com.sap.sse.gwt.dispatch.shared.commands.SortedSetResult;
|
import com.sap.sse.gwt.dispatch.shared.commands.SortedSetResult;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* {@link SailingAction} implementation to load data to be shown on the event overview or regattas page for the
|
||||||
|
* {@link #GetRegattaListViewAction(UUID) given event-id}, preparing the appropriate data structure.
|
||||||
|
* </p>
|
||||||
|
* <p>
|
||||||
|
* The {@link ResultWithTTL result's} time to live
|
||||||
|
* {@link EventActionUtil#getEventStateDependentTTL(SailingDispatchContext, UUID, Duration) depends on the event's
|
||||||
|
* state} using a duration of <i>3 minutes</i> for currently running events.
|
||||||
|
* </p>
|
||||||
|
*/
|
||||||
public class GetRegattaListViewAction implements SailingAction<ResultWithTTL<SortedSetResult<RegattaWithProgressDTO>>>,
|
public class GetRegattaListViewAction implements SailingAction<ResultWithTTL<SortedSetResult<RegattaWithProgressDTO>>>,
|
||||||
IsClientCacheable {
|
IsClientCacheable {
|
||||||
private UUID eventId;
|
private UUID eventId;
|
||||||
@@ -24,6 +35,12 @@ public class GetRegattaListViewAction implements SailingAction<ResultWithTTL<Sor
|
|||||||
private GetRegattaListViewAction() {
|
private GetRegattaListViewAction() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a {@link GetRegattaListViewAction} instance for the given event-id.
|
||||||
|
*
|
||||||
|
* @param eventId
|
||||||
|
* {@link UUID} of the event to load regattas for
|
||||||
|
*/
|
||||||
public GetRegattaListViewAction(UUID eventId) {
|
public GetRegattaListViewAction(UUID eventId) {
|
||||||
this.eventId = eventId;
|
this.eventId = eventId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user