fixed that getPublicEvents() should only deliver public events (was borken for local events)

This commit is contained in:
fmittag committed 2014-08-15 11:29:43 +02:00
1 parent 8dd998b8be
commit 67a967ccff
1 file changed
+3 -1
@@ -3031,7 +3031,9 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
public List<EventBaseDTO> getPublicEventsOfAllSailingServers() throws MalformedURLException {
List<EventBaseDTO> result = new ArrayList<>();
for (EventDTO localEvent : getEvents()) {
result.add(localEvent);
if(localEvent.isPublic) {
result.add(localEvent);
}
}
for (Entry<RemoteSailingServerReference, com.sap.sse.common.Util.Pair<Iterable<EventBase>, Exception>> serverRefAndEventsOrException :
getService().getPublicEventsOfAllSailingServers().entrySet()) {