cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 5 May 2023 09:04:12 +0000 (11:04 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 5 May 2023 09:04:12 +0000 (11:04 +0200)
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/TaxonRelationshipsDTO.java
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/portal/PortalDtoLoader.java

index 318901d8c299dbb1318279bf8fdf54f1ca98512d..68b5ad7b1e6ed9cce2b2dcc5193c1e7fd4888c3f 100644 (file)
@@ -16,6 +16,8 @@ import java.util.stream.Collectors;
 
 import org.joda.time.DateTime;
 
+import eu.etaxonomy.cdm.api.dto.portal.TaxonPageDto;
+import eu.etaxonomy.cdm.api.dto.portal.TaxonPageDto.ConceptRelationDTO;
 import eu.etaxonomy.cdm.common.CdmUtils;
 import eu.etaxonomy.cdm.format.taxon.TaxonRelationshipFormatter;
 import eu.etaxonomy.cdm.model.common.Language;
@@ -34,11 +36,19 @@ import eu.etaxonomy.cdm.strategy.cache.TaggedText;
  *
  * @author a.mueller
  * @since 15.08.2018
+ * @deprecated not needed anymore after fully switching to {@link TaxonPageDto}
+ *             and {@link ConceptRelationDTO}
  */
+@Deprecated
 public class TaxonRelationshipsDTO {
 
     private static final String SENSU_SEPARATOR = ", ";
 
+    /**
+     * @deprecated not needed anymore after fully switching to {@link TaxonPageDto}
+     *             and {@link ConceptRelationDTO}
+     */
+    @Deprecated
     public class TaxonRelationDTO{
 
         private boolean doubtful = false;
index fc5229225efeac15fe4dadfed6855363fc793aba..1f6e0f2a72d486954932f2d4613a606239ee3167 100644 (file)
@@ -183,7 +183,7 @@ public class PortalDtoLoader {
             loadBaseData(taxon, result);
             result.setLastUpdated(getLastUpdated(null, taxon));
             result.setLabel(CdmUtils.Nz(taxon.getTitleCache()));
-//        result.setTypedTaxonLabel(getTypedTaxonLabel(taxon, config));
+//          result.setTypedTaxonLabel(getTypedTaxonLabel(taxon, config));
             result.setTaggedLabel(getTaggedTaxon(taxon, config));
             if (name != null) {
                 handleName(config, result, name, result);