Revision 0844524a
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/AbstractEntityEvent.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.vaadin.event; |
10 | 10 |
|
11 |
import java.util.UUID; |
|
12 |
|
|
11 | 13 |
import eu.etaxonomy.vaadin.mvp.AbstractView; |
12 | 14 |
|
13 | 15 |
/** |
... | ... | |
17 | 19 |
*/ |
18 | 20 |
public abstract class AbstractEntityEvent<T extends Enum> { |
19 | 21 |
|
20 |
private Integer entityId = null;
|
|
22 |
private UUID entityUuid = null;
|
|
21 | 23 |
|
22 | 24 |
protected T type; |
23 | 25 |
|
24 | 26 |
private AbstractView sourceView = null; |
25 | 27 |
|
26 |
public AbstractEntityEvent(T type, Integer entityId, AbstractView sourceView) {
|
|
27 |
this.entityId = entityId;
|
|
28 |
public AbstractEntityEvent(T type, UUID entityUuid, AbstractView sourceView) {
|
|
29 |
this.entityUuid = entityUuid;
|
|
28 | 30 |
this.type = type; |
29 | 31 |
this.sourceView = sourceView; |
30 | 32 |
if(type == null){ |
... | ... | |
35 | 37 |
/** |
36 | 38 |
* @return the entityId |
37 | 39 |
*/ |
38 |
public Integer getEntityId() {
|
|
39 |
return entityId;
|
|
40 |
public UUID getEntityUuid() {
|
|
41 |
return entityUuid;
|
|
40 | 42 |
} |
41 | 43 |
|
42 | 44 |
public T getType() { |
Also available in: Unified diff
switching vom id based to uuid based ui navigation and entity references