import eu.etaxonomy.cdm.io.common.Source;\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.model.common.ISourceable;\r
import eu.etaxonomy.cdm.model.description.Feature;\r
import eu.etaxonomy.cdm.model.description.FeatureNode;\r
//check - import\r
static final CHECK check = CHECK.CHECK_AND_IMPORT;\r
\r
+ //editor - import\r
+ static final EDITOR editor = EDITOR.EDITOR_AS_EDITOR;\r
+ \r
//NomeclaturalCode\r
static final NomenclaturalCode nomenclaturalCode = NomenclaturalCode.ICBN;\r
\r
static final boolean doFacts = true;\r
static final boolean doOccurences = true;\r
\r
+ //etc.\r
+ static final boolean doMarker = true;\r
+ static final boolean doUser = true;\r
+\r
\r
// **************** SELECTED *********************\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
// //taxa \r
// static final boolean doTaxa = true;\r
// static final boolean doRelTaxa = false;\r
-// static final boolean doFacts = true;\r
+// static final boolean doFacts = false;\r
// static final boolean doOccurences = false;\r
+// \r
+// //etc.\r
+// static final boolean doMarker = true;\r
+// static final boolean doUser = true;\r
+ \r
\r
/**\r
* @param args\r
bmImportConfigurator.setDoRelTaxa(doRelTaxa);\r
bmImportConfigurator.setDoFacts(doFacts);\r
bmImportConfigurator.setDoOccurrence(doOccurences);\r
+ \r
+ bmImportConfigurator.setDoMarker(doMarker);\r
+ bmImportConfigurator.setDoUser(doUser);\r
bmImportConfigurator.setDbSchemaValidation(hbm2dll);\r
\r
// mediaResourceLocations\r
\r
\r
bmImportConfigurator.setCheck(check);\r
+ bmImportConfigurator.setEditor(editor);\r
\r
// invoke import\r
CdmDefaultImport<BerlinModelImportConfigurator> bmImport = new CdmDefaultImport<BerlinModelImportConfigurator>();\r
//database validation status (create, update, validate ...)\r
static DbSchemaValidation hbm2dll = DbSchemaValidation.CREATE;\r
static final Source berlinModelSource = BerlinModelSources.EDIT_Diptera();\r
- static final ICdmDataSource cdmDestination = CdmDestinations.localH2();\r
+ static final ICdmDataSource cdmDestination = CdmDestinations.localH2Diptera();\r
static final UUID secUuid = UUID.fromString("06fd671f-1226-4e3b-beca-1959b3b32e20");\r
static final int sourceSecId = 1000000;\r
static final UUID featureTreeUuid = UUID.fromString("ae9615b8-bc60-4ed0-ad96-897f9226d568");\r
static final Object[] featureKeyList = new Integer[]{1,4,5,10,11,12,13,99}; \r
\r
//check - import\r
- static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK;\r
+ static final CHECK check = CHECK.CHECK_AND_IMPORT;\r
\r
static final boolean doDistributionParser = true; //also run DipteraDistributionParser\r
\r
static final boolean doFacts = true;\r
static final boolean doOccurences = false;\r
\r
+ //etc.\r
+ static final boolean doMarker = true;\r
+ static final boolean doUser = true;\r
+\r
+// **************** SELECTED *********************\r
+ \r
// //authors\r
// static final boolean doAuthors = true;\r
// //references\r
// static final boolean doRelTaxa = false;\r
// static final boolean doFacts = true;\r
// static final boolean doOccurences = false;\r
- \r
+// \r
+// //etc.\r
+// static final boolean doMarker = false;\r
+// static final boolean doUser = false; \r
\r
\r
/**\r
bmImportConfigurator.setDoRelTaxa(doRelTaxa);\r
bmImportConfigurator.setDoFacts(doFacts);\r
bmImportConfigurator.setDoOccurrence(doOccurences);\r
+ \r
+ bmImportConfigurator.setDoMarker(doMarker);\r
+ bmImportConfigurator.setDoUser(doUser);\r
+ \r
bmImportConfigurator.setDbSchemaValidation(hbm2dll);\r
\r
bmImportConfigurator.setCheck(check);\r