make observer list modifiable #3825 (task1)
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 24 Oct 2013 13:29:23 +0000 (13:29 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 24 Oct 2013 13:29:23 +0000 (13:29 +0000)
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/DescriptionPortalController.java

index 265b53081a25a3cef63af46dd765a79ae262f487..818b84f18efed99c0da55d21d08bf700504c0a5b 100644 (file)
@@ -71,6 +71,13 @@ public class DescriptionPortalController extends BaseController<DescriptionBase,
             "elements.states.*",\r
             "elements.media",\r
     });\r
+    \r
+    protected static final List<String> ORDERED_DISTRIBUTION_INIT_STRATEGY = Arrays.asList(new String []{\r
+            "elements.$",\r
+            "elements.sources.citation.authorTeam.$",\r
+            "elements.sources.nameUsedInSource.originalNameString",\r
+            "elements.area.level",\r
+    });\r
 \r
 \r
     public DescriptionPortalController() {\r
@@ -115,10 +122,13 @@ public class DescriptionPortalController extends BaseController<DescriptionBase,
         Set<TaxonDescription> taxonDescriptions = new HashSet<TaxonDescription>();\r
         TaxonDescription description;\r
         for (UUID descriptionUuid : descriptionUuidList) {\r
-            description = (TaxonDescription) service.load(descriptionUuid, DESCRIPTION_INIT_STRATEGY);\r
+            logger.debug("  loading description " + descriptionUuid.toString() );\r
+            description = (TaxonDescription) service.load(descriptionUuid, null);\r
             taxonDescriptions.add(description);\r
         }\r
-        DistributionTree distTree = service.getOrderedDistributions(taxonDescriptions, levels, DESCRIPTION_INIT_STRATEGY);\r
+        logger.debug("  get ordered distributions ");\r
+        DistributionTree distTree = service.getOrderedDistributions(taxonDescriptions, levels, ORDERED_DISTRIBUTION_INIT_STRATEGY);\r
+        logger.debug("done");\r
         return distTree;\r
     }\r
 \r