Revision 8072bd02
Added by Andreas Müller about 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/cyprus/CyprusActivator.java | ||
---|---|---|
15 | 15 |
|
16 | 16 |
import org.apache.log4j.Logger; |
17 | 17 |
|
18 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
|
|
18 |
import eu.etaxonomy.cdm.api.application.ICdmRepository;
|
|
19 | 19 |
import eu.etaxonomy.cdm.api.service.ITermService; |
20 | 20 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
21 | 21 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
... | ... | |
98 | 98 |
|
99 | 99 |
//deduplicate |
100 | 100 |
if (doDeduplicate){ |
101 |
ICdmApplicationConfiguration app = myImport.getCdmAppController();
|
|
101 |
ICdmRepository app = myImport.getCdmAppController();
|
|
102 | 102 |
int count = app.getAgentService().deduplicate(Person.class, null, null); |
103 | 103 |
logger.warn("Deduplicated " + count + " persons."); |
104 | 104 |
// count = app.getAgentService().deduplicate(Team.class, null, null); |
Also available in: Unified diff
ref #6419 adapt to CdmRepository in cdmlib-app