Revision 9ec325d4
Added by Andreas Müller almost 6 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/RegistrationDTO.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.api.service.exception.RegistrationValidationException; |
24 | 24 |
import eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager; |
25 | 25 |
import eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.TypeDesignationWorkingSet; |
26 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
|
26 |
import eu.etaxonomy.cdm.model.common.VerbatimTimePeriod;
|
|
27 | 27 |
import eu.etaxonomy.cdm.model.name.NameTypeDesignation; |
28 | 28 |
import eu.etaxonomy.cdm.model.name.Registration; |
29 | 29 |
import eu.etaxonomy.cdm.model.name.RegistrationStatus; |
... | ... | |
73 | 73 |
} |
74 | 74 |
|
75 | 75 |
if(hasName(reg)){ |
76 |
citation = (Reference) reg.getName().getNomenclaturalReference();
|
|
76 |
citation = reg.getName().getNomenclaturalReference(); |
|
77 | 77 |
citationDetail = reg.getName().getNomenclaturalMicroReference(); |
78 | 78 |
name = new EntityReference(reg.getName().getUuid(), reg.getName().getTitleCache()); |
79 | 79 |
} |
... | ... | |
209 | 209 |
/** |
210 | 210 |
* @return the registrationDate |
211 | 211 |
*/ |
212 |
public TimePeriod getDatePublished() { |
|
212 |
public VerbatimTimePeriod getDatePublished() {
|
|
213 | 213 |
return citation == null ? null : citation.getDatePublished(); |
214 | 214 |
} |
215 | 215 |
|
Also available in: Unified diff
ref #6752 strictly use VerbatimTimePeriod where possible