remove use of TermService.findByEnum
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 1 Nov 2013 15:22:11 +0000 (15:22 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 1 Nov 2013 15:22:11 +0000 (15:22 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NamedAreaSelectionDialog.java

index a8d278d3b47e0a7064e137512b7c3e1c9f6bdc34..7e251cba7ae5cded99f2d9ddd48a1b7e5d9c2a34 100644 (file)
@@ -135,10 +135,10 @@ public class NamedAreaSelectionDialog extends
 
        private List<TermVocabulary<NamedArea>> getVocabularies(){
                List<TermVocabulary<NamedArea>> vocabularies = CdmStore.getService(IVocabularyService.class).listByTermClass(NamedArea.class, null, null, null, null);
-               vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.TdwgArea));
-               vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Country));
-               vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Waterbody));
-               vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Continent));
+               vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.TdwgArea.getUuid()));
+               vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Country.getUuid()));
+               vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Waterbody.getUuid()));
+               vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Continent.getUuid()));
                return vocabularies;
        }