//database validation status (create, update, validate ...)\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_test_local_mysql();\r
+// static final ICdmDataSource cdmDestination = CdmDestinations.localH2();\r
+ static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql();\r
\r
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_algaterra_preview();\r
+// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_algaterra_production();\r
\r
\r
static final UUID treeUuid = UUID.fromString("1f617402-78dc-4bf1-ac77-d260600a8879");\r
static final Object[] featureKeyList = new Integer[]{7,201,203,204,206,207}; \r
static final UUID specimenFeatureTreeUuid = UUID.fromString("ba86246e-d4d0-419f-832e-86d70b1e4bd7");\r
\r
- \r
+ static final boolean loginAsDefaultAdmin = true;\r
static final boolean removeRestricted = true;\r
\r
+ static final boolean importOriginalSizeMedia = false;\r
+ \r
//check - import\r
- static final CHECK check = CHECK.CHECK_AND_IMPORT;\r
+ static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK;\r
\r
private boolean ignoreNull = true;\r
\r
private EDITOR editor = EDITOR.EDITOR_AS_EDITOR;\r
\r
//NomeclaturalCode\r
- static final NomenclaturalCode nomenclaturalCode = NomenclaturalCode.ICBN;\r
+ static final NomenclaturalCode nomenclaturalCode = NomenclaturalCode.ICNAFP;\r
\r
- static String factFilter = " factCategoryFk NOT IN (7, 202, 203, 205, 1000 ) ";\r
+ static String factFilter = " factCategoryFk NOT IN (7, 201, 202, 203, 204, 205, 206, 207, 208, 1000 ) ";\r
\r
\r
// ****************** ALL *****************************************\r
//alga terra specific\r
static final boolean ecoFacts = true;\r
static final boolean doFactEcology = true;\r
- static final boolean doImages = true;\r
+ static final boolean doImages = false;\r
static final boolean doDna = true;\r
+ static final boolean doMorphology = true;\r
\r
// ************************ NONE **************************************** //\r
\r
// //authors\r
// static final boolean doAuthors = false;\r
// //references\r
-// static final DO_REFERENCES doReferences = DO_REFERENCES.ALL;\r
+// static final DO_REFERENCES doReferences = DO_REFERENCES.NONE;\r
// //names\r
// static final boolean doTaxonNames = false;\r
// static final boolean doRelNames = false;\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
// \r
// static final boolean ecoFacts = true;\r
// static final boolean doFactEcology = false;\r
// static final boolean doImages = false;\r
-// static final boolean doDna = true;\r
+// static final boolean doDna = false;\r
+// static final boolean doMorphology = true;\r
\r
\r
public void invoke(String[] args){\r
config.setDoImages(doImages);\r
config.setDoFactEcology(doFactEcology);\r
config.setDoDna(doDna);\r
+ config.setDoMorphology(doMorphology);\r
\r
config.setSourceRefUuid(sourceRefUuid);\r
config.setIgnoreNull(ignoreNull);\r
config.setRemoveRestricted(removeRestricted);\r
+ config.setImportOriginalSizeMedia(importOriginalSizeMedia);\r
\r
config.setIncludeFlatClassifications(includeFlatClassifications);\r
config.setIncludeAllNonMisappliedRelatedClassifications(includeAllNonMisappliedRelatedClassifications);\r
config.setCheck(check);\r
config.setEditor(editor);\r
\r
+ if (loginAsDefaultAdmin){\r
+ config.authenticateAsDefaultAdmin();\r
+ }\r
+ \r
// invoke import\r
CdmDefaultImport<BerlinModelImportConfigurator> bmImport = new CdmDefaultImport<BerlinModelImportConfigurator>();\r
bmImport.invoke(config);\r
FeatureNode node = FeatureNode.NewInstance(Feature.HABITAT());\r
tree.getRoot().addChild(node);\r
\r
- node = FeatureNode.NewInstance(Feature.OBSERVATION());\r
- tree.getRoot().addChild(node);\r
- \r
- node = FeatureNode.NewInstance(Feature.SPECIMEN());\r
- tree.getRoot().addChild(node);\r
- \r
- node = FeatureNode.NewInstance(Feature.INDIVIDUALS_ASSOCIATION());\r
- tree.getRoot().addChild(node);\r
+// node = FeatureNode.NewInstance(Feature.OBSERVATION());\r
+// tree.getRoot().addChild(node);\r
+// \r
+// node = FeatureNode.NewInstance(Feature.SPECIMEN());\r
+// tree.getRoot().addChild(node);\r
+// \r
+// node = FeatureNode.NewInstance(Feature.INDIVIDUALS_ASSOCIATION());\r
+// tree.getRoot().addChild(node);\r
\r
//needed ??\r
FeatureNode distributionNode = FeatureNode.NewInstance(Feature.DISTRIBUTION());\r