mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-21 19:50:01 +00:00
implemented simple method in HomeService to get the server configuration
This commit is contained in:
1 parent
b4728028c1
commit
f21abdd6e4
3 files changed
+11
-1
No files matched your search
+7
-1
@@ -66,7 +66,13 @@ public class HomeServiceImpl extends ProxiedRemoteServiceServlet implements Home
|
||||
protected RacingEventService getService() {
|
||||
return racingEventServiceTracker.getService();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isStandaloneServer() {
|
||||
return getService().getSailingServerConfiguration().isStandaloneServer();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StartViewDTO getStartView() throws MalformedURLException {
|
||||
EventStageCandidateCalculator stageCandidateCalculator = new EventStageCandidateCalculator();
|
||||
|
||||
+2
@@ -18,4 +18,6 @@ public interface HomeService extends RemoteService {
|
||||
EventListViewDTO getEventListView() throws Exception;
|
||||
|
||||
StartViewDTO getStartView() throws Exception;
|
||||
|
||||
boolean isStandaloneServer();
|
||||
}
|
||||
+2
@@ -22,4 +22,6 @@ public interface HomeServiceAsync {
|
||||
void getEventListView(AsyncCallback<EventListViewDTO> callback);
|
||||
|
||||
void getStartView(AsyncCallback<StartViewDTO> callback);
|
||||
|
||||
void isStandaloneServer(AsyncCallback<Boolean> callback);
|
||||
}
|
||||
Reference in new issue
Block a user