Revision 8072bd02
Added by Andreas Müller about 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/i4life/col/ColDwcaImportActivator.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
import org.apache.log4j.Logger; |
16 | 16 |
|
17 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
|
|
17 |
import eu.etaxonomy.cdm.api.application.ICdmRepository;
|
|
18 | 18 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
19 | 19 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
20 | 20 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
... | ... | |
126 | 126 |
|
127 | 127 |
//deduplicate |
128 | 128 |
if (doDeduplicate){ |
129 |
ICdmApplicationConfiguration app = myImport.getCdmAppController();
|
|
129 |
ICdmRepository app = myImport.getCdmAppController();
|
|
130 | 130 |
int count = app.getAgentService().deduplicate(Person.class, null, null); |
131 | 131 |
logger.warn("Deduplicated " + count + " persons."); |
132 | 132 |
// count = app.getAgentService().deduplicate(Team.class, null, null); |
Also available in: Unified diff
ref #6419 adapt to CdmRepository in cdmlib-app