1
|
/**
|
2
|
* Copyright (C) 2020 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
|
import java.util.Set;
|
13
|
import java.util.UUID;
|
14
|
|
15
|
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
16
|
import eu.etaxonomy.cdm.model.name.Rank;
|
17
|
import eu.etaxonomy.cdm.model.taxon.TaxonNodeAgentRelation;
|
18
|
|
19
|
/**
|
20
|
* @author k.luther
|
21
|
* @since Apr 23, 2020
|
22
|
*/
|
23
|
public class CreateTaxonDTO implements Serializable{
|
24
|
|
25
|
private static final long serialVersionUID = 9183429250677087219L;
|
26
|
|
27
|
//uuid to a persisted name
|
28
|
private UUID nameUuid = null;
|
29
|
private UUID taxonUuid = null;
|
30
|
//name string if no persisted name is used
|
31
|
private String taxonNameString;
|
32
|
private NomenclaturalCode nomenclaturalCode;
|
33
|
private Rank preferredRank;
|
34
|
|
35
|
private UUID secUuid;
|
36
|
private String secMicroReference;
|
37
|
private boolean isDoubtful;
|
38
|
private String appendedPhrase;
|
39
|
private boolean isPublish;
|
40
|
|
41
|
Set<TaxonNodeAgentRelation> agentRelations;
|
42
|
|
43
|
public CreateTaxonDTO(UUID nameUuid, UUID secUuid, String secMicroRef, boolean isDoubtful,
|
44
|
String appendedPhrase, boolean isPublish, String taxonNameString,
|
45
|
NomenclaturalCode nomenclaturalCode, Rank preferredRank){
|
46
|
this.nameUuid = nameUuid;
|
47
|
this.secUuid = secUuid;
|
48
|
this.secMicroReference = secMicroRef;
|
49
|
this.isDoubtful = isDoubtful;
|
50
|
this.appendedPhrase= appendedPhrase;
|
51
|
this.isPublish = isPublish;
|
52
|
this.taxonNameString = taxonNameString;
|
53
|
this.nomenclaturalCode = nomenclaturalCode;
|
54
|
this.preferredRank = preferredRank;
|
55
|
}
|
56
|
|
57
|
public CreateTaxonDTO(UUID taxonUuid, boolean isDoubtful,
|
58
|
String appendedPhrase, boolean isPublish, String taxonNameString,
|
59
|
NomenclaturalCode nomenclaturalCode, Rank preferredRank){
|
60
|
this.taxonUuid = taxonUuid;
|
61
|
this.isDoubtful = isDoubtful;
|
62
|
this.appendedPhrase= appendedPhrase;
|
63
|
this.isPublish = isPublish;
|
64
|
this.taxonNameString = taxonNameString;
|
65
|
this.nomenclaturalCode = nomenclaturalCode;
|
66
|
this.preferredRank = preferredRank;
|
67
|
}
|
68
|
|
69
|
public UUID getNameUuid() {
|
70
|
return nameUuid;
|
71
|
}
|
72
|
public void setNameUuid(UUID nameUuid) {
|
73
|
this.nameUuid = nameUuid;
|
74
|
}
|
75
|
|
76
|
public UUID getTaxonUuid() {
|
77
|
return taxonUuid;
|
78
|
}
|
79
|
public void setTaxonUuid(UUID taxonUuid) {
|
80
|
this.taxonUuid = taxonUuid;
|
81
|
}
|
82
|
|
83
|
public UUID getSecUuid() {
|
84
|
return secUuid;
|
85
|
}
|
86
|
public void setSecUuid(UUID secUuid) {
|
87
|
this.secUuid = secUuid;
|
88
|
}
|
89
|
|
90
|
public String getSecMicroReference() {
|
91
|
return secMicroReference;
|
92
|
}
|
93
|
public void setSecMicroReference(String secMicroReference) {
|
94
|
this.secMicroReference = secMicroReference;
|
95
|
}
|
96
|
|
97
|
/**
|
98
|
* @return the agentRelations
|
99
|
*/
|
100
|
public Set<TaxonNodeAgentRelation> getAgentRelations() {
|
101
|
return agentRelations;
|
102
|
}
|
103
|
|
104
|
/**
|
105
|
* @param agentRelations the agentRelations to set
|
106
|
*/
|
107
|
public void setAgentRelations(Set<TaxonNodeAgentRelation> agentRelations) {
|
108
|
this.agentRelations = agentRelations;
|
109
|
}
|
110
|
|
111
|
public boolean isDoubtful() {
|
112
|
return isDoubtful;
|
113
|
}
|
114
|
public void setDoubtful(boolean isDoubtful) {
|
115
|
this.isDoubtful = isDoubtful;
|
116
|
}
|
117
|
|
118
|
public String getAppendedPhrase() {
|
119
|
return appendedPhrase;
|
120
|
}
|
121
|
public void setAppendedPhrase(String appendedPhrase) {
|
122
|
this.appendedPhrase = appendedPhrase;
|
123
|
}
|
124
|
|
125
|
public boolean isPublish() {
|
126
|
return isPublish;
|
127
|
}
|
128
|
public void setPublish(boolean isPublish) {
|
129
|
this.isPublish = isPublish;
|
130
|
}
|
131
|
|
132
|
public String getTaxonNameString() {
|
133
|
return taxonNameString;
|
134
|
}
|
135
|
|
136
|
public void setTaxonNameString(String taxonNameString) {
|
137
|
this.taxonNameString = taxonNameString;
|
138
|
}
|
139
|
|
140
|
public NomenclaturalCode getCode() {
|
141
|
return nomenclaturalCode;
|
142
|
}
|
143
|
|
144
|
public Rank getPreferredRank() {
|
145
|
return preferredRank;
|
146
|
}
|
147
|
}
|