44 |
44 |
import eu.etaxonomy.cdm.model.location.NamedArea;
|
45 |
45 |
import eu.etaxonomy.cdm.model.location.NamedAreaLevel;
|
46 |
46 |
import eu.etaxonomy.cdm.model.location.NamedAreaType;
|
|
47 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
47 |
48 |
import eu.etaxonomy.cdm.model.reference.Reference;
|
48 |
49 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
|
49 |
50 |
|
... | ... | |
62 |
63 |
static final URI specimenSource = EfloraSources.vittaria_specimen_pesiimport3();
|
63 |
64 |
|
64 |
65 |
|
65 |
|
static final ICdmDataSource cdmDestination = CdmDestinations.cdm_flora_central_africa_preview();
|
|
66 |
static final ICdmDataSource cdmDestination = CdmDestinations.cdm_flora_central_africa_local();
|
|
67 |
|
|
68 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_flora_central_africa_preview();
|
66 |
69 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_flora_central_africa_production();
|
67 |
70 |
// static final ICdmDataSource cdmDestination = CdmDestinations.localH2();
|
68 |
71 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_local_postgres_CdmTest();
|
69 |
72 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql();
|
70 |
|
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_jaxb();
|
71 |
|
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_edit_cichorieae_preview();
|
72 |
73 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_campanulaceae_production();
|
73 |
74 |
|
74 |
75 |
//feature tree uuid
|
... | ... | |
79 |
80 |
//classification
|
80 |
81 |
static final UUID classificationUuid = UUID.fromString("10e5efcc-6e13-4abc-ad42-e0b46e50cbe7");
|
81 |
82 |
|
|
83 |
NomenclaturalCode nc = NomenclaturalCode.ICNAFP;
|
|
84 |
|
82 |
85 |
//check - import
|
83 |
86 |
static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK;
|
84 |
87 |
|
... | ... | |
119 |
122 |
config.setDefaultLanguageUuid(defaultLanguageUuid);
|
120 |
123 |
config.setDoPrintKeys(doPrintKeys);
|
121 |
124 |
config.setDbSchemaValidation(hbm2dll);
|
|
125 |
config.setNomenclaturalCode(nc);
|
122 |
126 |
|
123 |
127 |
CdmDefaultImport<EfloraImportConfigurator> myImport = new CdmDefaultImport<EfloraImportConfigurator>();
|
124 |
128 |
|
... | ... | |
174 |
178 |
SpecimenCdmExcelImportConfigurator specimenConfig= SpecimenCdmExcelImportConfigurator.NewInstance(specimenSource, cdmDestination);
|
175 |
179 |
specimenConfig.setCdmAppController((CdmApplicationController)app);
|
176 |
180 |
specimenConfig.setAreaMatchMode(specimenAreaMatchMode);
|
|
181 |
specimenConfig.setNomenclaturalCode(nc);
|
177 |
182 |
|
178 |
183 |
config.setDbSchemaValidation(DbSchemaValidation.VALIDATE);
|
179 |
184 |
specimenConfig.setSourceReference(getSourceReference(specimenConfig.getSourceReferenceTitle()));
|
latest changes to FdAC import and new source