ref #9797 disabling and deprecating TaxonRelationshipBeanProcessor
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Mon, 4 Oct 2021 11:46:44 +0000 (13:46 +0200)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Mon, 4 Oct 2021 11:52:00 +0000 (13:52 +0200)
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/json/processor/bean/TaxonRelationshipBeanProcessor.java
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/json/jsonConfigurations.xml

index d1b4c3fc73d3b33e2334fded5df170b1ea32bb5c..c2eb04449a88885bac29f22a4c9d1ae914193081 100644 (file)
@@ -1,36 +1,75 @@
 /**\r
+\r
 * Copyright (C) 2009 EDIT\r
+\r
 * European Distributed Institute of Taxonomy\r
+\r
 * http://www.e-taxonomy.eu\r
+\r
 *\r
+\r
 * The contents of this file are subject to the Mozilla Public License Version 1.1\r
+\r
 * See LICENSE.TXT at the top of this package for the full license terms.\r
+\r
 */\r
+\r
 package eu.etaxonomy.cdm.remote.json.processor.bean;\r
 \r
+\r
+\r
 import java.util.List;\r
 \r
+\r
+\r
 import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;\r
+\r
 import net.sf.json.JSONObject;\r
+\r
 import net.sf.json.JsonConfig;\r
 \r
+\r
+\r
 /**\r
+\r
  * @author a.kohlbecker\r
+\r
  * @since 09.06.2009\r
+\r
+ * @deprecated unused\r
+\r
  */\r
+\r
+@Deprecated\r
+\r
 public class TaxonRelationshipBeanProcessor extends AbstractCdmBeanProcessor<TaxonRelationship> {\r
 \r
+\r
+\r
     @Override\r
+\r
     public List<String> getIgnorePropNames() {\r
+\r
         return null;\r
+\r
     }\r
 \r
+\r
+\r
     @Override\r
+\r
     public JSONObject processBeanSecondStep(TaxonRelationship bean, JSONObject json, JsonConfig jsonConfig) {\r
 \r
+\r
+\r
         json.element("fromTaxon", bean.getFromTaxon(), jsonConfig);\r
+\r
         json.element("toTaxon", bean.getToTaxon(), jsonConfig);\r
 \r
+\r
+\r
         return json;\r
+\r
     }\r
+\r
 }
\ No newline at end of file
index f7de46963265ab1d06ba3e1786c82a3142f0f0b1..ee01ef896e744360b484b4930450421291a1b2bf 100644 (file)
           <bean
             class="eu.etaxonomy.cdm.remote.json.processor.bean.NameRelationshipBeanProcessor" />
         </entry>
-        <entry key="eu.etaxonomy.cdm.model.taxon.TaxonRelationship">
-          <bean
-            class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonRelationshipBeanProcessor" />
-        </entry>
         <entry key="eu.etaxonomy.cdm.model.term.TermBase">
           <bean
             class="eu.etaxonomy.cdm.remote.json.processor.bean.TermBaseBeanProcessor">