Revision 8072bd02
Added by Andreas Müller about 7 years ago
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/CentralAfricaEricaceaeActivator.java | ||
---|---|---|
17 | 17 |
import org.springframework.transaction.TransactionStatus; |
18 | 18 |
|
19 | 19 |
import eu.etaxonomy.cdm.api.application.CdmApplicationController; |
20 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
|
|
20 |
import eu.etaxonomy.cdm.api.application.ICdmRepository;
|
|
21 | 21 |
import eu.etaxonomy.cdm.api.service.ITermService; |
22 | 22 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
23 | 23 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
... | ... | |
150 | 150 |
|
151 | 151 |
//deduplicate |
152 | 152 |
if (doDeduplicate){ |
153 |
ICdmApplicationConfiguration app = myImport.getCdmAppController();
|
|
153 |
ICdmRepository app = myImport.getCdmAppController();
|
|
154 | 154 |
if (app == null){ |
155 | 155 |
app = CdmApplicationController.NewInstance(cdmDestination, hbm2dll, false); |
156 | 156 |
} |
... | ... | |
171 | 171 |
|
172 | 172 |
if (doSpecimen){ |
173 | 173 |
logger.warn("Start specimen import"); |
174 |
ICdmApplicationConfiguration app = myImport.getCdmAppController();
|
|
174 |
ICdmRepository app = myImport.getCdmAppController();
|
|
175 | 175 |
SpecimenCdmExcelImportConfigurator specimenConfig= SpecimenCdmExcelImportConfigurator.NewInstance(specimenSource, cdmDestination); |
176 | 176 |
specimenConfig.setCdmAppController(app); |
177 | 177 |
specimenConfig.setAreaMatchMode(specimenAreaMatchMode); |
... | ... | |
192 | 192 |
} |
193 | 193 |
|
194 | 194 |
private void newNamedAreas(CdmDefaultImport<EfloraImportConfigurator> myImport) { |
195 |
ICdmApplicationConfiguration app = myImport.getCdmAppController();
|
|
195 |
ICdmRepository app = myImport.getCdmAppController();
|
|
196 | 196 |
if (app == null){ |
197 | 197 |
app = CdmApplicationController.NewInstance(cdmDestination, hbm2dll, false); |
198 | 198 |
} |
Also available in: Unified diff
ref #6419 adapt to CdmRepository in cdmlib-app