Revision 526223e5
Added by Andreas Müller over 2 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/terms/RepresentationCsvImport.java | ||
---|---|---|
41 | 41 |
* @since 14.03.2017 |
42 | 42 |
*/ |
43 | 43 |
@Component |
44 |
public class RepresentationCsvImport extends SimpleImport<RepresentationCsvImportConfigurator, File>{ |
|
44 |
public class RepresentationCsvImport |
|
45 |
extends SimpleImport<RepresentationCsvImportConfigurator, File>{ |
|
46 |
|
|
45 | 47 |
private static final long serialVersionUID = -5600766240192189822L; |
46 | 48 |
private static Logger logger = Logger.getLogger(RepresentationCsvImport.class); |
47 | 49 |
|
48 |
/** |
|
49 |
* {@inheritDoc} |
|
50 |
*/ |
|
51 | 50 |
@Override |
52 | 51 |
protected void doInvoke(RepresentationCsvImportConfigurator config) { |
53 | 52 |
try { |
... | ... | |
95 | 94 |
} catch (IOException e) { |
96 | 95 |
throw new RuntimeException(e); |
97 | 96 |
} |
98 |
|
|
99 | 97 |
} |
100 | 98 |
|
101 | 99 |
/** |
... | ... | |
175 | 173 |
return term; |
176 | 174 |
} |
177 | 175 |
|
178 |
/** |
|
179 |
* @param uuid |
|
180 |
* @return |
|
181 |
*/ |
|
182 | 176 |
private TermBase getTerm(UUID uuid) { |
183 | 177 |
TermBase result = getTermService().find(uuid); |
184 | 178 |
if (result == null){ |
Also available in: Unified diff
cleanup