\r
import org.apache.log4j.Logger;\r
\r
-import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;\r
+import eu.etaxonomy.cdm.api.application.ICdmRepository;\r
import eu.etaxonomy.cdm.app.common.CdmDestinations;\r
import eu.etaxonomy.cdm.database.DbSchemaValidation;\r
import eu.etaxonomy.cdm.database.ICdmDataSource;\r
import eu.etaxonomy.cdm.io.pesi.faunaEuropaea.FaunaEuropaeaImportConfigurator;\r
import eu.etaxonomy.cdm.io.pesi.out.PesiTransformer;\r
import eu.etaxonomy.cdm.model.description.Feature;\r
-import eu.etaxonomy.cdm.model.description.FeatureNode;\r
-import eu.etaxonomy.cdm.model.description.FeatureTree;\r
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;\r
+import eu.etaxonomy.cdm.model.term.TermNode;\r
+import eu.etaxonomy.cdm.model.term.TermTree;\r
\r
/**\r
* @author a.babadshanjan\r
- * @created 12.05.2009\r
+ * @since 12.05.2009\r
*/\r
public class FaunaEuropaeaActivator {\r
@SuppressWarnings("unused")\r
//make feature tree\r
\r
if (makeFeatureTree) {\r
- FeatureTree featureTree = FeatureTree.NewInstance(UUID.fromString("ff59b9ad-1fb8-4aa4-a8ba-79d62123d0fb"));\r
- FeatureNode root = featureTree.getRoot();\r
+ TermTree<Feature> featureTree = TermTree.NewFeatureInstance(UUID.fromString("ff59b9ad-1fb8-4aa4-a8ba-79d62123d0fb"));\r
+ TermNode<Feature> root = featureTree.getRoot();\r
\r
- ICdmApplicationConfiguration app = fauEuImport.getCdmAppController();\r
+ ICdmRepository app = fauEuImport.getCdmAppController();\r
Feature citationFeature = (Feature)app.getTermService().find(UUID.fromString("99b2842f-9aa7-42fa-bd5f-7285311e0101"));\r
- FeatureNode citationNode = FeatureNode.NewInstance(citationFeature);\r
- root.addChild(citationNode);\r
+ root.addChild(citationFeature);\r
Feature distributionFeature = (Feature)app.getTermService().find(UUID.fromString("9fc9d10c-ba50-49ee-b174-ce83fc3f80c6"));\r
- FeatureNode distributionNode = FeatureNode.NewInstance(distributionFeature);\r
- root.addChild(distributionNode);\r
+ root.addChild(distributionFeature);\r
Feature commonNameFeature = (Feature)app.getTermService().find(UUID.fromString("fc810911-51f0-4a46-ab97-6562fe263ae5"));\r
- FeatureNode commonNameFeatureNode = FeatureNode.NewInstance(commonNameFeature);\r
- root.addChild(commonNameFeatureNode);\r
- app.getFeatureTreeService().saveOrUpdate(featureTree);\r
+ root.addChild(commonNameFeature);\r
+ app.getTermTreeService().saveOrUpdate(featureTree);\r
}\r
\r
System.out.println("End importing Fauna Europaea data");\r