Revision 576b283c
Added by Katja Luther almost 5 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/TaxonDistributionDTO.java | ||
---|---|---|
30 | 30 |
public class TaxonDistributionDTO implements Serializable{ |
31 | 31 |
|
32 | 32 |
private static final long serialVersionUID = -6565463192135410612L; |
33 |
UUID taxonUuid;
|
|
33 |
Taxon taxon;
|
|
34 | 34 |
String nameCache; |
35 | 35 |
Rank rank; |
36 | 36 |
TaxonDescriptionDTO descriptionsWrapper; |
... | ... | |
39 | 39 |
|
40 | 40 |
|
41 | 41 |
public TaxonDistributionDTO(Taxon taxon){ |
42 |
this.taxonUuid = taxon.getUuid();
|
|
42 |
this.taxon = taxon;
|
|
43 | 43 |
this.nameCache = taxon.getName().getNameCache() != null ? taxon.getName().getNameCache(): taxon.getName().getTitleCache(); |
44 | 44 |
if (nameCache == null){ |
45 | 45 |
nameCache = taxon.getTitleCache(); |
... | ... | |
67 | 67 |
* @return the taxonUuid |
68 | 68 |
*/ |
69 | 69 |
public UUID getTaxonUuid() { |
70 |
return taxonUuid;
|
|
70 |
return taxon.getUuid();
|
|
71 | 71 |
} |
72 |
/** |
|
73 |
* @return the taxon |
|
74 |
*/ |
|
75 |
public Taxon getTaxon() { |
|
76 |
return taxon; |
|
77 |
} |
|
78 |
|
|
72 | 79 |
|
73 | 80 |
/** |
74 |
* @param taxonUuid the taxonUuid to set
|
|
81 |
* @param taxon the taxon to set
|
|
75 | 82 |
*/ |
76 |
public void setTaxonUuid(UUID taxonUuid) {
|
|
77 |
this.taxonUuid = taxonUuid;
|
|
83 |
public void setTaxon(Taxon taxon) {
|
|
84 |
this.taxon = taxon;
|
|
78 | 85 |
} |
79 | 86 |
|
80 | 87 |
/** |
Also available in: Unified diff
ref #7854: changes in taxonDistributionDTO