import eu.etaxonomy.cdm.io.common.CdmDefaultImport;\r
import eu.etaxonomy.cdm.io.common.IImportConfigurator.CHECK;\r
import eu.etaxonomy.cdm.io.common.IImportConfigurator.DO_REFERENCES;\r
+import eu.etaxonomy.cdm.io.common.IImportConfigurator.EDITOR;\r
import eu.etaxonomy.cdm.io.common.Source;\r
import eu.etaxonomy.cdm.model.description.Feature;\r
import eu.etaxonomy.cdm.model.description.FeatureNode;\r
static DbSchemaValidation hbm2dll = DbSchemaValidation.CREATE;\r
static final Source berlinModelSource = BerlinModelSources.AlgaTerra();\r
// static final ICdmDataSource cdmDestination = CdmDestinations.localH2();\r
- static final ICdmDataSource cdmDestination = CdmDestinations.cdm_algaterra_preview();\r
+// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_algaterra_preview();\r
+ static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql();\r
+ \r
\r
static final UUID treeUuid = UUID.fromString("1f617402-78dc-4bf1-ac77-d260600a8879");\r
static final int sourceSecId = 7331;\r
static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK;\r
\r
private boolean ignoreNull = true;\r
+ \r
+ private boolean includeFlatClassifications = true;\r
+ \r
+ private EDITOR editor = EDITOR.EDITOR_AS_EDITOR;\r
\r
//NomeclaturalCode\r
static final NomenclaturalCode nomenclaturalCode = NomenclaturalCode.ICBN;\r
-\r
+ \r
+ static String factFilter = " factCategoryFk NOT IN (7, 202 ) ";\r
+ \r
+ \r
// ****************** ALL *****************************************\r
\r
//authors\r
static final boolean doTaxonNames = true;\r
static final boolean doRelNames = true;\r
static final boolean doNameStatus = true;\r
- static final boolean doTypes = false; \r
- static final boolean doNameFacts = false; //do not exist in Alga Terra\r
+ static final boolean doTypes = true; \r
\r
//taxa\r
static final boolean doTaxa = true;\r
static final boolean doRelTaxa = true;\r
static final boolean doFacts = true;\r
- static final boolean doOccurences = false;\r
- static final boolean doCommonNames = false; //do not exist in Alga Terra\r
\r
//alga terra specific\r
- static final boolean doSpecimen = true;\r
+ static final boolean ecoFacts = true;\r
+ static final boolean doImages = true;\r
\r
// ************************ NONE **************************************** //\r
\r
// static final boolean doTaxonNames = false;\r
// static final boolean doRelNames = false;\r
// static final boolean doNameStatus = false;\r
-// static final boolean doTypes = false;\r
+// static final boolean doTypes = true;\r
// static final boolean doNameFacts = false;\r
// \r
// //taxa\r
-// static final boolean doTaxa = true;\r
+// static final boolean doTaxa = false;\r
// static final boolean doRelTaxa = false;\r
// static final boolean doFacts = false;\r
-// static final boolean doOccurences = false;\r
-// static final boolean doCommonNames = false;\r
// \r
// //alga terra specific\r
-// static final boolean doSpecimen = true;\r
+// static final boolean ecoFacts = true;\r
+// static final boolean doImages = true;\r
+ \r
\r
public void invoke(String[] args){\r
System.out.println("Start import from BerlinModel("+ berlinModelSource.getDatabase() + ") ...");\r
config.setDoRelNames(doRelNames);\r
config.setDoNameStatus(doNameStatus);\r
config.setDoTypes(doTypes);\r
- config.setDoNameFacts(doNameFacts);\r
\r
config.setDoTaxa(doTaxa);\r
config.setDoRelTaxa(doRelTaxa);\r
config.setDoFacts(doFacts);\r
- config.setDoOccurrence(doOccurences);\r
- config.setDoCommonNames(doCommonNames);\r
- config.setDoSpecimen(doSpecimen);\r
+ config.setDoEcoFacts(ecoFacts);\r
+ config.setDoImages(doImages);\r
\r
config.setSourceRefUuid(sourceRefUuid);\r
config.setIgnoreNull(ignoreNull);\r
\r
+ config.setIncludeFlatClassifications(includeFlatClassifications);\r
+ config.setFactFilter(factFilter);\r
+ \r
config.setDbSchemaValidation(hbm2dll);\r
\r
config.setCheck(check);\r
+ config.setEditor(editor);\r
\r
// invoke import\r
CdmDefaultImport<BerlinModelImportConfigurator> bmImport = new CdmDefaultImport<BerlinModelImportConfigurator>();\r