132133134135136137138139
allAlerts = getAllAlerts(); eventManager.addListener(listener); } for(IScanAlert alert: allAlerts) { listener.handleEvent(new NewScanAlertEvent(alert)); } }
38394041424344
if(rejectDuplicateAlert(alert)) { return; } database.store(alert); } eventManager.fireEvent(new NewScanAlertEvent(alert)); }