package edu.kit.ipd.crowdcontrol.objectservice.event;

import edu.ipd.kit.crowdcontrol.objectservice.database.model.tables.Answers;
import edu.ipd.kit.crowdcontrol.objectservice.database.model.tables.Experiment;
import edu.ipd.kit.crowdcontrol.objectservice.database.model.tables.Ratings;

/**
 * Created by marcel on 02.01.16.
 */
public class EventManager {
    public static final EventObservable<Experiment> NEW_EXPERIMENT = new EventObservable<>();
    public static final EventObservable<ChangeEvent<Experiment>> CHANGE_EXPERIMENT = new EventObservable<>();
    public static final EventObservable<Experiment> DEL_EXPERIMENT = new EventObservable<>();
    public static final EventObservable<Answers> NEW_ANSWER = new EventObservable<>();
    public static final EventObservable<Ratings> NEW_RATINGS = new EventObservable<>();
}

@@ -51,39 +51,39 @@
 nt;%0A%0Aimport edu.
-ipd.kit
+kit.ipd
 .crowdcontrol.ob
@@ -98,107 +98,335 @@
 ice.
-database.model.tables.Answers;%0Aimport edu.ipd.kit.crowdcontrol.objectservice.database.model.t
+proto.*;%0A%0A/**%0A * Created by marcel on 02.01.16.%0A */%0Apublic class EventManager %7B%0A    public static final EventObservable%3CExperiment%3E EXPERIMENT_CREATE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CChangeEvent%3CExperiment%3E%3E EXPERIMENT_CHANGE = new EventObservable%3C%3E();%0A    public static final EventObserv
 able
-s.
+%3C
 Expe
@@ -435,157 +435,411 @@
 ment
-;%0Aimport edu.ipd.kit.crowdcontrol.objectservice.database.model.t
+%3E EXPERIMENT_DELETE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CAnswer%3E ANSWER_CREATE = new EventObservable%3C%3E();%0A    public static final EventObserv
 able
-s.
+%3C
 Rating
-s;%0A%0A/**%0A * Created by marcel on 02.01.16.%0A */%0Apublic class EventManager %7B
+%3E RATINGS_CREATE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CWorker%3E WORKER_CREATE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CWorker%3E WORKER_DELETE = new EventObservable%3C%3E();
 %0A   
@@ -879,34 +879,33 @@
 ble%3C
-Experiment%3E NEW_EXPERIMENT
+Template%3E TEMPLATE_CREATE
  = n
@@ -984,219 +984,536 @@
 ent%3C
-Experiment%3E%3E CHANGE_EXPERIMENT = new EventObservable%3C%3E();%0A    public static final EventObservable%3CExperiment%3E DEL_EXPERIMENT = new EventObservable%3C%3E();%0A    public static final EventObservable%3CAnswers%3E NEW_ANSWER
+Template%3E%3E TEMPLATE_UPDATE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CTemplate%3E TEMPLATE_DELETE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CPopulation%3E POPULATION_CREATE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CPopulation%3E POPULATION_UPDATE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CNotification%3E NOTIFICATION_CREATE = new EventObservable%3C%3E();%0A    public static final EventObservable%3CChangeEvent%3CNotification%3E%3E NOTIFICATION_UPDATE
  = n
@@ -1580,28 +1580,41 @@
 ble%3C
-Ratings%3E NEW_RATINGS
+Notification%3E NOTIFICATION_DELETE
  = n

add new events