Revision 4982a63b
Added by Andreas Müller over 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelAreaImport.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelTransformer; |
25 | 25 |
import eu.etaxonomy.cdm.io.berlinModel.in.validation.BerlinModelAreaImportValidator; |
26 |
import eu.etaxonomy.cdm.io.common.CdmImportBase; |
|
27 | 26 |
import eu.etaxonomy.cdm.io.common.IOValidator; |
28 | 27 |
import eu.etaxonomy.cdm.io.common.ResultSetPartitioner; |
29 | 28 |
import eu.etaxonomy.cdm.io.common.Source; |
... | ... | |
188 | 187 |
|
189 | 188 |
try { |
190 | 189 |
|
191 |
@SuppressWarnings("unchecked") |
|
192 |
TermVocabulary<MarkerType> vocUserDefinedMarkerTypes = getVocabularyService().find(CdmImportBase.uuidUserDefinedMarkerTypeVocabulary); |
|
193 |
if (vocUserDefinedMarkerTypes == null){ |
|
194 |
String message = "Marker type vocabulary could not be found. Hidden areas not added."; |
|
195 |
logger.error(message); |
|
196 |
System.out.println(message); |
|
197 |
} |
|
198 | 190 |
MarkerType hiddenAreaMarkerType = getMarkerType(state, BerlinModelTransformer.uuidHiddenArea, |
199 | 191 |
"Hidden Area","Used to hide distributions for the named areas in publications", null, getEuroMedMarkerTypeVoc()); |
200 | 192 |
|
Also available in: Unified diff
cleanup