@PostConstruct private void init() { mapModel = new DefaultMapModel(); this.events = eventDAO.findAllByOwner(signedMember); this.filteredEvents = events; List<Marker> markers = createMarkersFromEvents(this.filteredEvents); for (Marker marker : markers) { mapModel.addOverlay(marker); } generateMapParams(); }
public void delete(Event event) { eventDAO.remove(event); this.events.remove(event); this.filteredEvents.remove(event); }