Revision b13da0b9
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmChangeEvent.java | ||
---|---|---|
9 | 9 |
*/ |
10 | 10 |
package eu.etaxonomy.cdm.api.application; |
11 | 11 |
|
12 |
import java.util.HashSet; |
|
12 | 13 |
import java.util.Set; |
13 | 14 |
|
14 | 15 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
... | ... | |
27 | 28 |
} |
28 | 29 |
|
29 | 30 |
private final Action action; |
30 |
private final Set<? extends CdmBase> changedObjects;
|
|
31 |
private final Set<CdmBase> changedObjects; |
|
31 | 32 |
private final Class sourceType; |
32 | 33 |
private Object source; |
33 | 34 |
|
34 |
public CdmChangeEvent(Action action, Set<? extends CdmBase> changedObjects, Class sourceType) {
|
|
35 |
public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Class sourceType) { |
|
35 | 36 |
this.action = action; |
36 | 37 |
this.changedObjects = changedObjects; |
37 | 38 |
this.sourceType = sourceType; |
38 | 39 |
} |
39 | 40 |
|
40 |
public CdmChangeEvent(Action action, Set<? extends CdmBase> changedObjects, Object source) { |
|
41 |
public CdmChangeEvent(Action action, CdmBase changedObject, Class sourceType) { |
|
42 |
this.action = action; |
|
43 |
changedObjects = new HashSet<CdmBase>(); |
|
44 |
changedObjects.add(changedObject); |
|
45 |
this.sourceType = sourceType; |
|
46 |
} |
|
47 |
|
|
48 |
public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Object source) { |
|
41 | 49 |
this(action, changedObjects, source.getClass()); |
42 | 50 |
this.source = source; |
43 | 51 |
} |
Also available in: Unified diff
#5007 : Add remoting handler / operations for the taxon navigator