implemented simple method in HomeService to get the server configuration

This commit is contained in:
fmittag committed 2015-09-04 16:02:06 +02:00
1 parent b4728028c1
commit f21abdd6e4
3 files changed
+11 -1

No files matched your search

@@ -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();
@@ -18,4 +18,6 @@ public interface HomeService extends RemoteService {
EventListViewDTO getEventListView() throws Exception;
StartViewDTO getStartView() throws Exception;
boolean isStandaloneServer();
}
@@ -22,4 +22,6 @@ public interface HomeServiceAsync {
void getEventListView(AsyncCallback<EventListViewDTO> callback);
void getStartView(AsyncCallback<StartViewDTO> callback);
void isStandaloneServer(AsyncCallback<Boolean> callback);
}