Project

General

Profile

Download (2.07 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.api.service.dto;
10

    
11
import eu.etaxonomy.cdm.model.occurrence.DerivationEvent;
12

    
13
/**
14
 * @author k.luther
15
 * @since 22.06.2018
16
 *
17
 */
18
public class DerivationEventDTO {
19

    
20

    
21
    private String derivationEventType;
22
    private String derivationEventActor;
23
    private String derivationEventInstitute;
24

    
25
    /**
26
     * @param derivationEventType
27
     * @param derivationEventActor
28
     * @param derivationEventInstitute
29
     */
30
    public DerivationEventDTO(String derivationEventType, String derivationEventActor,
31
            String derivationEventInstitute) {
32

    
33
        this.derivationEventType = derivationEventType;
34
        this.derivationEventActor = derivationEventActor;
35
        this.derivationEventInstitute = derivationEventInstitute;
36
    }
37

    
38
    /**
39
     * @param derivationEvent
40
     */
41
    public DerivationEventDTO(DerivationEvent derivationEvent) {
42

    
43
        this(derivationEvent.getType()!= null? derivationEvent.getType().getTitleCache() : null, derivationEvent.getActor() != null ? derivationEvent.getActor().getTitleCache() : null, derivationEvent.getInstitution() != null ? derivationEvent.getInstitution().getTitleCache(): null);
44

    
45
    }
46

    
47
    public String getDerivationEventType() {
48
        return derivationEventType;
49
    }
50
    public void setDerivationEventType(String derivationEventType) {
51
        this.derivationEventType = derivationEventType;
52
    }
53
    public String getDerivationEventActor() {
54
        return derivationEventActor;
55
    }
56
    public void setDerivationEventActor(String derivationEventActor) {
57
        this.derivationEventActor = derivationEventActor;
58
    }
59
    public String getDerivationEventInstitute() {
60
        return derivationEventInstitute;
61
    }
62
    public void setDerivationEventInstitute(String derivationEventInstitute) {
63
        this.derivationEventInstitute = derivationEventInstitute;
64
    }
65

    
66
}
(7-7/30)