Revision 51171c9d
Added by Andreas Müller about 13 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/tcsrdf/TcsRdfTaxonNameImport.java | ||
---|---|---|
94 | 94 |
}; |
95 | 95 |
|
96 | 96 |
@Override |
97 |
protected boolean doInvoke(TcsRdfImportState state){
|
|
97 |
protected void doInvoke(TcsRdfImportState state){
|
|
98 | 98 |
|
99 | 99 |
MapWrapper<TaxonNameBase> taxonNameMap = (MapWrapper<TaxonNameBase>)state.getStore(ICdmIO.TAXONNAME_STORE); |
100 | 100 |
MapWrapper<Reference> referenceMap = (MapWrapper<Reference>)state.getStore(ICdmIO.REFERENCE_STORE); |
... | ... | |
107 | 107 |
logger.info("start makeTaxonNames ..."); |
108 | 108 |
TcsRdfImportConfigurator config = state.getConfig(); |
109 | 109 |
Element root = config.getSourceRoot(); |
110 |
boolean success =true; |
|
111 | 110 |
|
112 | 111 |
Namespace rdfNamespace = config.getRdfNamespace(); |
113 | 112 |
Namespace taxonNameNamespace = config.getTnNamespace(); |
... | ... | |
246 | 245 |
} catch (UnknownCdmTypeException e) { |
247 | 246 |
//FIXME |
248 | 247 |
logger.warn("Name with id " + nameAbout + " has unknown rank " + strRank + " and could not be saved."); |
249 |
success = false;
|
|
248 |
state.setUnsuccessfull();
|
|
250 | 249 |
} |
251 | 250 |
} |
252 | 251 |
logger.info(i + " names handled"); |
253 | 252 |
getNameService().save(taxonNameMap.objects()); |
254 | 253 |
// makeNameSpecificData(nameMap); |
255 | 254 |
logger.info("end makeTaxonNames ..."); |
256 |
return success;
|
|
255 |
return; |
|
257 | 256 |
|
258 | 257 |
} |
259 | 258 |
/* (non-Javadoc) |
Also available in: Unified diff
last updates for Taxon Excel Import and moving all success variables to state