Project

General

Profile

« Previous | Next » 

Revision 1d95f477

Added by Andreas Müller 4 months ago

fix compile errors in NepenthaceIpniActivator

View differences:

cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/NepenthaceIpniActivator.java
53 53
      CdmApplicationController app = CdmApplicationController.NewInstance(cdmDestination, hbm2dll);
54 54

  
55 55
      ICdmRepository repository = null  ; //app  for now we do not want to deduplicate against repository
56
      ImportDeduplicationHelper<?> deduplicationHelper = new ImportDeduplicationHelper<>(repository);
56
      ImportDeduplicationHelper deduplicationHelper = ImportDeduplicationHelper.NewInstance(repository, null);
57 57

  
58 58
      TransactionStatus txStatus = app.startTransaction();
59 59
      Reference ipniSec = app.getReferenceService().find(UUID.fromString("17ffcbc7-7f80-42cd-a95e-25d0289c9f71"));
......
100 100
   }
101 101

  
102 102
    private void doSingleImport(CdmApplicationController app, Reference ipniSec, Classification classification,
103
        IpniServiceNamesConfigurator namesConfig, ImportDeduplicationHelper<?> deduplicationHelper) {
103
        IpniServiceNamesConfigurator namesConfig, ImportDeduplicationHelper deduplicationHelper) {
104 104

  
105 105
        IpniService ipniService = new IpniService();//(IpniService)app.getBean("ipniService");
106 106

  
......
113 113
        List<TaxonBase> taxaToSave  = new ArrayList<>();
114 114
        for (IBotanicalName name : names){
115 115
//          System.out.println(name.getTitleCache());
116
            deduplicationHelper.replaceAuthorNamesAndNomRef(null, name);
116
            deduplicationHelper.replaceAuthorNamesAndNomRef(name);
117 117
            Taxon taxon = Taxon.NewInstance(name, ipniSec);
118 118
            classification.addChildTaxon(taxon, null, null);
119 119
//          app.getTaxonService().saveOrUpdate(taxon);

Also available in: Unified diff