bringing the titleCache of TeamOrPersonBase back to the REST services
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / json / processor / bean / TaxonNodeDaoBeanProcessor.java
index 2807f6e5e925c60cfd574c00c6e56c995f32473c..478e11410e0eea3d3454c75b5eb15afbedd3b165 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$\r
 /**\r
  * Copyright (C) 2007 EDIT\r
- * European Distributed Institute of Taxonomy \r
+ * European Distributed Institute of Taxonomy\r
  * http://www.e-taxonomy.eu\r
- * \r
+ *\r
  * The contents of this file are subject to the Mozilla Public License Version 1.1\r
  * See LICENSE.TXT at the top of this package for the full license terms.\r
  */\r
@@ -32,7 +32,7 @@ public class TaxonNodeDaoBeanProcessor implements JsonBeanProcessor {
         */\r
        @Override\r
        public JSONObject processBean(Object bean, JsonConfig jsonConfig) {\r
-               \r
+\r
                TaxonNode node = (TaxonNode)bean;\r
                JSONObject json = new JSONObject();\r
                json.element("class", "TaxonNodeDao");\r
@@ -42,12 +42,12 @@ public class TaxonNodeDaoBeanProcessor implements JsonBeanProcessor {
                json.element("taggedTitle", taggedTitle, jsonConfig);\r
                json.element("taxonUuid", node.getTaxon().getUuid(), jsonConfig);\r
                //Sec can be null (web services can return null for sec)\r
-               //comparation made for avoding view exceptions\r
+               //comparation made for avoiding view exceptions\r
                if (node.getTaxon().getSec() == null){\r
                        json.element("secUuid", "null");\r
                }else{\r
                        json.element("secUuid", node.getTaxon().getSec().getUuid(), jsonConfig);\r
-               }       \r
+               }\r
                json.element("taxonomicChildrenCount", node.getCountChildren(), jsonConfig);\r
                json.element("unplaced", node.getTaxon().isUnplaced());\r
                json.element("excluded", node.getTaxon().isExcluded());\r
@@ -57,7 +57,7 @@ public class TaxonNodeDaoBeanProcessor implements JsonBeanProcessor {
                }\r
                json.element("rankLabel", ranklabel, jsonConfig);\r
                //json.element("treeUuid", node.getClassification().getUuid(), jsonConfig);\r
-               \r
+\r
                return json;\r
        }\r
 \r