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 java.io.Serializable;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.occurrence.DerivationEvent;
|
14
|
|
15
|
/**
|
16
|
* @author k.luther
|
17
|
* @since 22.06.2018
|
18
|
*
|
19
|
*/
|
20
|
public class DerivationEventDTO implements Serializable {
|
21
|
|
22
|
private static final long serialVersionUID = 6338657672281702600L;
|
23
|
|
24
|
private String derivationEventType;
|
25
|
private String derivationEventActor;
|
26
|
private String derivationEventInstitute;
|
27
|
|
28
|
/**
|
29
|
* @param derivationEventType
|
30
|
* @param derivationEventActor
|
31
|
* @param derivationEventInstitute
|
32
|
*/
|
33
|
public DerivationEventDTO(String derivationEventType, String derivationEventActor,
|
34
|
String derivationEventInstitute) {
|
35
|
|
36
|
this.derivationEventType = derivationEventType;
|
37
|
this.derivationEventActor = derivationEventActor;
|
38
|
this.derivationEventInstitute = derivationEventInstitute;
|
39
|
}
|
40
|
|
41
|
/**
|
42
|
* @param derivationEvent
|
43
|
*/
|
44
|
public DerivationEventDTO(DerivationEvent derivationEvent) {
|
45
|
|
46
|
this(derivationEvent.getType()!= null? derivationEvent.getType().getTitleCache() : null, derivationEvent.getActor() != null ? derivationEvent.getActor().getTitleCache() : null, derivationEvent.getInstitution() != null ? derivationEvent.getInstitution().getTitleCache(): null);
|
47
|
|
48
|
}
|
49
|
|
50
|
public String getDerivationEventType() {
|
51
|
return derivationEventType;
|
52
|
}
|
53
|
public void setDerivationEventType(String derivationEventType) {
|
54
|
this.derivationEventType = derivationEventType;
|
55
|
}
|
56
|
public String getDerivationEventActor() {
|
57
|
return derivationEventActor;
|
58
|
}
|
59
|
public void setDerivationEventActor(String derivationEventActor) {
|
60
|
this.derivationEventActor = derivationEventActor;
|
61
|
}
|
62
|
public String getDerivationEventInstitute() {
|
63
|
return derivationEventInstitute;
|
64
|
}
|
65
|
public void setDerivationEventInstitute(String derivationEventInstitute) {
|
66
|
this.derivationEventInstitute = derivationEventInstitute;
|
67
|
}
|
68
|
|
69
|
}
|