Revision 8072bd02
Added by Andreas Müller about 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/berlinModelImport/EuroMedActivator.java | ||
---|---|---|
25 | 25 |
import org.springframework.transaction.TransactionStatus; |
26 | 26 |
|
27 | 27 |
import eu.etaxonomy.cdm.api.application.FirstDataInserter; |
28 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
|
|
28 |
import eu.etaxonomy.cdm.api.application.ICdmRepository;
|
|
29 | 29 |
import eu.etaxonomy.cdm.api.service.IGroupService; |
30 | 30 |
import eu.etaxonomy.cdm.api.service.description.TransmissionEngineDistribution; |
31 | 31 |
import eu.etaxonomy.cdm.api.service.description.TransmissionEngineDistribution.AggregationMode; |
... | ... | |
269 | 269 |
CdmDefaultImport<BerlinModelImportConfigurator> bmImport) { |
270 | 270 |
|
271 | 271 |
if (config.isDoTaxonNames() && (config.getCheck().isImport() ) ){ |
272 |
ICdmApplicationConfiguration app = bmImport.getCdmAppController();
|
|
272 |
ICdmRepository app = bmImport.getCdmAppController();
|
|
273 | 273 |
TransactionStatus tx = app.startTransaction(); |
274 | 274 |
try { |
275 | 275 |
Rank sectBot = (Rank)app.getTermService().find(Rank.SECTION_BOTANY().getUuid()); |
... | ... | |
299 | 299 |
{ |
300 | 300 |
if (config.isDoFacts() && (config.getCheck().isImport() ) ){ |
301 | 301 |
try { |
302 |
ICdmApplicationConfiguration app = bmImport.getCdmAppController();
|
|
302 |
ICdmRepository app = bmImport.getCdmAppController();
|
|
303 | 303 |
TransactionStatus tx = app.startTransaction(); |
304 | 304 |
|
305 | 305 |
//make feature tree |
... | ... | |
325 | 325 |
CdmDefaultImport<BerlinModelImportConfigurator> bmImport) { |
326 | 326 |
if (config.isDoFacts() && (config.getCheck().isImport() ) ){ |
327 | 327 |
try { |
328 |
ICdmApplicationConfiguration app = bmImport.getCdmAppController();
|
|
328 |
ICdmRepository app = bmImport.getCdmAppController();
|
|
329 | 329 |
TransactionStatus tx = app.startTransaction(); |
330 | 330 |
|
331 | 331 |
DefinedTermBase<?> commonNameFeature = app.getTermService().find(Feature.COMMON_NAME().getUuid()); |
... | ... | |
347 | 347 |
|
348 | 348 |
if (doRunTransmissionEngine && (config.getCheck().isImport() ) ){ |
349 | 349 |
try { |
350 |
ICdmApplicationConfiguration app = bmImport.getCdmAppController();
|
|
350 |
ICdmRepository app = bmImport.getCdmAppController();
|
|
351 | 351 |
|
352 | 352 |
final List<String> term_init_strategy = Arrays.asList(new String []{ |
353 | 353 |
"representations" |
... | ... | |
384 | 384 |
// |
385 | 385 |
// if (config.isDoOccurrence() && (config.getCheck().isImport())){ |
386 | 386 |
// try { |
387 |
// ICdmApplicationConfiguration app = bmImport.getCdmAppController();
|
|
387 |
// ICdmRepository app = bmImport.getCdmAppController();
|
|
388 | 388 |
// TransactionStatus tx = app.startTransaction(); |
389 | 389 |
// |
390 | 390 |
// MarkerType hiddenAreaMarkerType = MarkerType.NewInstance("Used to hide distributions for the named areas in publications", "Hidden Area", null); |
... | ... | |
416 | 416 |
// } |
417 | 417 |
// } |
418 | 418 |
// |
419 |
// private void hideArea(ICdmApplicationConfiguration app, MarkerType hiddenAreaMarkerType, UUID areaUuid) {
|
|
419 |
// private void hideArea(ICdmRepository app, MarkerType hiddenAreaMarkerType, UUID areaUuid) {
|
|
420 | 420 |
// NamedArea area = (NamedArea)app.getTermService().find(areaUuid); |
421 | 421 |
// area.addMarker(Marker.NewInstance(hiddenAreaMarkerType, true)); |
422 | 422 |
// app.getTermService().saveOrUpdate(area); |
... | ... | |
434 | 434 |
String wmsLayerName = "euromed_2013"; |
435 | 435 |
Set<UUID> areaUuidSet = null; |
436 | 436 |
|
437 |
ICdmApplicationConfiguration app = bmImport.getCdmAppController();
|
|
437 |
ICdmRepository app = bmImport.getCdmAppController();
|
|
438 | 438 |
IEditGeoService geoService = (IEditGeoService)app.getBean("editGeoService"); |
439 | 439 |
|
440 | 440 |
Map<NamedArea, String> resultMap; |
... | ... | |
468 | 468 |
|
469 | 469 |
try { |
470 | 470 |
if (config.isDoRelTaxa() && (config.getCheck().isImport())){ |
471 |
ICdmApplicationConfiguration app = bmImport.getCdmAppController();
|
|
471 |
ICdmRepository app = bmImport.getCdmAppController();
|
|
472 | 472 |
TransactionStatus tx = app.startTransaction(); |
473 | 473 |
|
474 | 474 |
//eraabstraube |
Also available in: Unified diff
ref #6419 adapt to CdmRepository in cdmlib-app