Project

General

Profile

Download (1.44 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.model;
10

    
11
import java.io.Serializable;
12
import java.util.UUID;
13

    
14
import org.joda.time.DateTime;
15

    
16
import eu.etaxonomy.cdm.model.common.CdmBase;
17
import eu.etaxonomy.cdm.model.common.User;
18

    
19
/**
20
 * @author a.kohlbecker
21
 * @since Apr 23, 2018
22
 *
23
 */
24
public class CdmEntityDecoraterDTO<CDM extends CdmBase> implements Serializable {
25

    
26
    private static final long serialVersionUID = 1715911851453178727L;
27

    
28
    protected CDM entity;
29

    
30
    public CdmEntityDecoraterDTO(CDM entity){
31
        this.entity = entity;
32
    }
33

    
34
    public CDM cdmEntity(){
35
        return entity;
36
    }
37

    
38
    public void setCreated(DateTime created) {
39
        entity.setCreated(created);
40
    }
41

    
42
    public void setCreatedBy(User createdBy) {
43
        entity.setCreatedBy(createdBy);
44
    }
45

    
46
    public DateTime getCreated() {
47
        return entity.getCreated();
48
    }
49

    
50
    public User getCreatedBy() {
51
        return entity.getCreatedBy();
52
    }
53

    
54
    public int getId() {
55
        return entity.getId();
56
    }
57

    
58
    public void setId(int id) {
59
        entity.setId(id);
60
    }
61

    
62
    public UUID getUuid() {
63
        return entity.getUuid();
64
    }
65

    
66
    public void setUuid(UUID uuid) {
67
        entity.setUuid(uuid);
68
    }
69

    
70
}
(1-1/5)