Revision 8072bd02
Added by Andreas Müller about 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/caryophyllales/CaryoActivator.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
import org.apache.log4j.Logger; |
15 | 15 |
|
16 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
|
|
16 |
import eu.etaxonomy.cdm.api.application.ICdmRepository;
|
|
17 | 17 |
import eu.etaxonomy.cdm.app.berlinModelImport.SourceBase; |
18 | 18 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
19 | 19 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
... | ... | |
82 | 82 |
|
83 | 83 |
//deduplicate |
84 | 84 |
if (doDeduplicate){ |
85 |
ICdmApplicationConfiguration app = myImport.getCdmAppController();
|
|
85 |
ICdmRepository app = myImport.getCdmAppController();
|
|
86 | 86 |
int count = app.getAgentService().deduplicate(Person.class, null, null); |
87 | 87 |
logger.warn("Deduplicated " + count + " persons."); |
88 | 88 |
// count = app.getAgentService().deduplicate(Team.class, null, null); |
Also available in: Unified diff
ref #6419 adapt to CdmRepository in cdmlib-app