Project

General

Profile

Download (897 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.vaadin.event;
10

    
11
/**
12
 * @author a.kohlbecker
13
 * @since May 10, 2017
14
 *
15
 */
16
public class EntityChangeEvent extends AbstractEntityEvent<EntityChangeEvent.Type> {
17

    
18
    public enum Type {
19
        CREATED,
20
        MODIFIED,
21
        REMOVED;
22
    }
23

    
24
    private Class<?> entityType;
25

    
26
    /**
27
     * @param type
28
     * @param entityId
29
     */
30
    public EntityChangeEvent(Class<?> entityType, Integer entityId, Type type) {
31
        super(type, entityId);
32
        this.entityType = entityType;
33
    }
34

    
35
    /**
36
     * @return the entityType
37
     */
38
    public Class<?> getEntityType() {
39
        return entityType;
40
    }
41

    
42
}
(7-7/16)