Project

General

Profile

« Previous | Next » 

Revision 19324ffc

Added by Lutz Suhrbier over 12 years ago

Includes TaxonPreloading without LazyInitExceptions

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java
87 87
     * @return
88 88
     */
89 89
    private static TaxonEditorInput NewInstance(UUID taxonNodeUuid, ConversationHolder conversation){
90
//    	List<String> propertyPaths = Arrays.asList(new String[]{
91
//				"taxon.sec", 
92
//				"taxon.name"
93
//		});
94
    	
95
    	TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeUuid);//), propertyPaths);
90
 	
91
    	TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeUuid);
96 92
		
97 93
		if(taxonNode == null){
98 94
			EditorUtil.warningDialog("Not yet implemented", TaxonEditorInput.class, "Selected element is not type TaxonBase.");
......
318 314
	public Taxon getTaxon(){
319 315
		if(taxon == null){
320 316
			List<String> TAXON_INIT_STRATEGY = Arrays.asList(new String []{
317
					// CdmBase 					: toOne-> "created, createdBy, uuid"
318
					// VersionableEntity 		: toOne-> "updated, updatedBy"
319
					// AnnotatableEntity 		: toMany-> "annotations, markers"
320
					// IdentifiableEntity		: toMany-> "credits, extensions, rights, sources" 
321
					//							: toOne-> "lsid"
322
					// TaxonBase				: toOne-> "homotypicgroup, name, sec"
323
					// Taxon					: toMany-> "descriptions, heterotypicSynonymyGroups, homotypicSynonymsByHomotypicGroup, homotypicSynonymsByHomotypicRelationship, homotypicSynonymyGroups, misappliedNames, relationsFromThisTaxon, relationsToThisTaxon, synonymNames, synonymRelations, synonyms, synonymsSortedByType, taxonNodes, taxonRelations"
324
					// Taxon					: toOne-> "imageGallery"
321 325
					"*",
322
					// synonyms
323
					"synonymRelations.synonym.name.homotypicalGroup.typifiedNames",
324
					"synonymRelations.synonym.name.status",
325
					"synonymRelations.synonym.name.relationsToThisName.fromTaxon.name",
326
					// synonym name
327
					"synonymRelations.synonym.name.descriptions.elements",
328
					"synonymRelations.synonym.name.typeDesignations", 
329
					"synonymRelations.synonym.name.relationsToThisName",
330
					"synonymRelations.synonym.name.relationsFromThisName",
331
					"synonymRelations.synonym.name.homotypicalGroup.typifiedNames",
332
					"synonymRelations.synonym.name.rank.representations",
333
					"synonymRelations.synonym.name.status.type.representations",
334
					// snonym name supplemental
335
					"synonymRelations.synonym.name.annotations.annotationType",
336
					"synonymRelations.synonym.name.markers",
337
					"synonymRelations.synonym.name.credits",
338
					"synonymRelations.synonym.name.extensions",
339
					"synonymRelations.synonym.name.rights",
340
					"synonymRelations.synonym.name.sources",
341
					//
342
					"relationsToThisTaxon",
343
					"relationsFromThisTaxon",
344
					// taxon relations 
345
					"relationsToThisName.fromTaxon.name",
346
					// the name
347
					"name.descriptions.elements",
348
					"name.typeDesignations", 
349
					"name.relationsToThisName",
350
					"name.relationsFromThisName",
351
					"name.homotypicalGroup.typifiedNames",
352
					"name.rank.representations",
353
					"name.status.type.representations",
354
					// name supplemental
355
					"name.annotations.annotationType",
356
					"name.markers",
357
					"name.credits",
358
					"name.extensions",
359
					"name.rights",
360
					"name.sources",
361
					// taxon descriptions
362
					"descriptions.describedSpecimenOrObservations",
363
					"descriptions.sources",
364
					"descriptions.scopes",
365
					// taxon description supplemental
366
					"descriptions.annotations.annotationType",
367
					"descriptions.markers",
368
					"descriptions.credits",
369
					"descriptions.extensions",
370
					"descriptions.rights",
371
					"descriptions.sources",
372
					// description elements
373
					"descriptions.elements.*",
374
					"descriptions.elements.sources",
326

  
327
					// CdmBase 					: toOne-> "created, createdBy, uuid"
328
					// VersionableEntity 		: toOne-> "updated, updatedBy"
329
					// AnnotatableEntity 		: toMany-> "" (available: "annotations, markers")
330
					// LanguageStringBase		: toOne-> "language"
331
					// Annotation				: toOne-> "annotatedObj, annotationType, commentator, linkbackUrl
332
					"annotations.$",
333

  
334
					// CdmBase 					: toOne-> "created, createdBy, uuid"
335
					// VersionableEntity 		: toOne-> "updated, updatedBy"
336
					// Marker					: toOne-> "markedObj, markerType"	
337
					"markers.$",
338

  
339
					// CdmBase 					: toOne-> "created, createdBy, uuid"
340
					// AnnotatableEntity 		: toMany-> "" (available: "annotations, markers")
341
					// LanguageStringBase		: toOne-> "language"
342
					// Annotation				: toOne-> "annotatedObj, annotationType, commentator, linkbackUrl
343
					// Credit					: toOne-> "agent"	
344
					"credits.$",
345

  
346
					// CdmBase 					: toOne-> "created, createdBy, uuid"
347
					// VersionableEntity 		: toOne-> "updated, updatedBy"
348
					// Extension				: toOne-> "extendedObj, type"	
349
					"extensions.$",
350

  
351
					// CdmBase 					: toOne-> "created, createdBy, uuid"
352
					// VersionableEntity 		: toOne-> "updated, updatedBy"
353
					// AnnotatableEntity 		: toMany-> "" (available: "annotations, markers")
354
					// LanguageStringBase		: toOne-> "language"
355
					// Rights					: toOne-> "agent, type, uri"	
356
					"rights.$",
357

  
358
					// CdmBase 					: toOne-> "created, createdBy, uuid"
359
					// VersionableEntity 		: toOne-> "updated, updatedBy"
360
					// AnnotatableEntity 		: toMany-> "" (available: "annotations, markers")
361
					// ReferencedEntityBase		: toOne-> "citation" 	
362
					// OriginalSourceBase		: 	
363
					// IdentifiableSource		: toOne-> "sourcedObj"	
364
					"sources.$",
365

  
366
					// CdmBase 					: toOne-> "created, createdBy, uuid"
367
					// AnnotatableEntity 		: toMany-> "" (available: "annotations, markers")
368
					// HomotypicalGroup			: toMany-> "" (available: "basionymAndReplacedSynonymRelations, basionyms, basionymsOrReplacedSynonyms, nameTypeDesignations, newCombinations, replacedSynonym, specimenTypeDesignations, synonymsInGroup, typeDesignations, typifiedNames, unrelatedNames" )  
369
					"homotypicGroup.$",
370

  
371
					// CdmBase 					: toOne-> "created, createdBy, uuid"
372
					// AnnotatableEntity 		: toMany-> "" (available: "annotations, markers")
373
					// TaxonNameBase			: toMany-> "" (available: "basionyms, descriptions, nameRelations, nameTypeDesignations, relationsFromThisName, relationsToThisName, specimenTypeDesignations, specimenTypeDesignationsOfHomotypicalGroup, status, synonyms, taggedName, taxa, taxonBases, typeDesignations" ) 
374
					//							: toOne-> "basionym, citation, homotypicalGroup, nomenclaturalCode, nomenclaturalReference, rank"
375
					// ViralName 
376
					// NonViralName				: toMany->"" (available: "childRelationships, hybridChildRelations, hybridParentRelations, orderedChildRelationships, parentRelationships") 
377
					//							: toOne-> "basionymAuthorTeam, combinationAuthorTeam, exBasionymAuthorTeam, exCombinationAuthorTeam"
378
					"name.$",
379

  
380
					// CdmBase 					: toOne-> "created, createdBy, uuid"
381
					// VersionableEntity 		: toOne-> "updated, updatedBy"
382
					// AnnotatableEntity 		: toMany-> "annotations, markers"
383
					// IdentifiableEntity		: toMany-> "credits, extensions, rights, sources" 
384
					//							: toOne-> "lsid"
385
					// IdentifiableMediaEntity	: toMany->"" (available: "media") 
386
					// Reference				: toOne->"authorTeam, datePublished, inBook, inJournal, inProceedings, inReference, inSeries, institution, school, type, uri" 
387
					"sec.$",
388
					
389
					// CdmBase 					: toOne-> "created, createdBy, uuid"
390
					// AnnotatableEntity 		: toMany-> "annotations, markers"
391
					// IdentifiableEntity		: toMany-> "credits, extensions, rights, sources" 
392
					//							: toOne-> "lsid"
393
					// DescriptionBase			: toMany->"" (available: "describedSpecimenObservations, descriptiveSystem, elements, workingSets" )
394
					// TaxonDescription			: toMany->"" (available: "geoScopes, scopes" )
395
					//							: toOne-> "taxon"
396
					"descriptions.$",
397

  
398
					// CdmBase 					: toOne-> "created, createdBy, uuid"
399
					// VersionableEntity 		: toOne-> "updated, updatedBy"
400
					// AnnotatableEntity 		: toMany-> "annotations, markers"
401
					// ReferencedEntityBase		: toOne-> "citation" 	
402
					// RelationshipBase			: 
403
					// TaxonRelationship		: toOne->"fromTaxon, relatedFrom, relatedTo, toTaxon, type"
404
					"relationsFromThisTaxon.$",
405

  
406
					// CdmBase 					: toOne-> "created, createdBy, uuid"
407
					// VersionableEntity 		: toOne-> "updated, updatedBy"
408
					// AnnotatableEntity 		: toMany-> "annotations, markers"
409
					// ReferencedEntityBase		: toOne-> "citation" 	
410
					// RelationshipBase			: 
411
					// TaxonRelationship		: toOne->"fromTaxon, relatedFrom, relatedTo, toTaxon, type"
412
					"relationsToThisTaxon.$",
413

  
414
					// CdmBase 					: toOne-> "created, createdBy, uuid"
415
					// VersionableEntity 		: toOne-> "updated, updatedBy"
416
					// AnnotatableEntity 		: toMany-> "annotations, markers"
417
					// ReferencedEntityBase		: toOne-> "citation" 	
418
					// RelationshipBase			: 
419
					// SynonymRelationship		: toOne->"acceptedTaxon, relatedFrom, relatedTo, synonym, type"
420
					"synonymRelations.$",
421

  
422
					// CdmBase 					: toOne-> "created, createdBy, uuid"
423
					// VersionableEntity 		: toOne-> "updated, updatedBy"
424
					// AnnotatableEntity 		: toMany-> "annotations, markers"
425
					// IdentifiableEntity		: toMany-> "credits, extensions, rights, sources" 
426
					//							: toOne-> "lsid"
427
					// TaxonBase				: toOne-> "homotypicgroup, name, sec"
428
					// Synonym					: toMany-> "" (available: "acceptedTaxa, relationType, synonymRelations" )
429
					"synonyms.$",
430

  
431
					// TaxonNameEditor.createOrUpdateNameComposites()
432
					// ContainerFactory.createOrUpdateAcceptedTaxonsHomotypicGroup()
433
					"name.homotypicalGroup.typifiedNames.$",
434
					"name.homotypicalGroup.synonymsInGroup",
435
					"name.synonymRelations",
436
					"name.descriptions.elements.$",
437
					// ContainerFactory.createOrUpdateAcceptedTaxonsHomotypicGroup()
438
					"name.homotypicalGroup.$",
439
					"name.homotypicalGroup.typifiedNames:$",					
440
					"synonymRelations.synonym.name.$",
441
					"synonymRelations.synonym.name.descriptions.elements.$",
442
					"synonymRelations.synonym.name.homotypicalGroup.$",
443
					"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.$",
444
					"synonymRelations.synonym.name.status.$",
445

  
446
					// NameEditorDropTargetListener.drop()
447
//					"name.nomenclaturalReference.$",
448
//					"synonymRelations.synonym.name.nomenclaturalReference.$",
449

  
450
					// MediaContentProvider.getImages()
451
					// DescriptionBase.getMedia()
452
					
453
					// CdmBase 					: toOne-> "created, createdBy, uuid"
454
					// VersionableEntity 		: toOne-> "updated, updatedBy"
455
					// AnnotatableEntity 		: toMany-> "annotations, markers"
456
					// DescriptionElementBase	: toMany->"" (available: "media, modifiers, modifyingText, sources" )
457
					//							: toOne-> "feature, inDescription"
458
					// CategoricalData			: toMany->"" (available: "states" )
459
					// CommonTaxaName			: toOne->"area, language"
460
					// Distribution				: toOne->"area, status"
461
					// IndividualsAssociation	: toMany->"" (available: "description" )
462
					//							: toOne-> "associatedSpecimenOrObserviation"
463
					// QuantitativeData			: toMany->"" (available: "statisticalValues" )
464
					//							: toOne-> "unit"
465
					// TaxonInteraction			: toMany->"" (available: "descriptions" )
466
					//							: toOne-> "taxon2"
467
					// TextData					: toMany->"" (available: "multilanguageText" )
468
					//							: toOne-> "format, languageText, preferredLanguageString"
469
					"descriptions.elements.$",
470
					
471
					// CdmBase 					: toOne-> "created, createdBy, uuid"
472
					// VersionableEntity 		: toOne-> "updated, updatedBy"
473
					// AnnotatableEntity 		: toMany-> "annotations, markers"
474
					// IdentifiableEntity		: toMany-> "credits, extensions, rights, sources" 
475
					//							: toOne-> "lsid"
476
					// Media					: toMany->"allDescriptions, allTitles, representations"
477
					//							: toOne-> "artist, description, mediaCreated, title"
478
		            "descriptions.elements.media.$",
479
//		            "descriptions.elements.media.allDescriptions.$",
480
					// CdmBase 					: toOne-> "created, createdBy, uuid"
481
					// VersionableEntity 		: toOne-> "updated, updatedBy"
482
		            // MediaRepresentation		: toMany-> "parts"
483
					//							: toOne-> "media"
484
		            // MediaRepresentationPart	: toOne-> "mediaRepresentation, size, uri"
485
		            "descriptions.elements.media.representations.parts.$",
486

  
487
		            "descriptions.elements.media.annotations.$",
488
		            "descriptions.elements.media.credits.$",
489
		            "descriptions.elements.media.extensions.$",
490
		            "descriptions.elements.media.markers.$",
491
		            "descriptions.elements.media.rights.$",
492
		            "descriptions.elements.media.sources.$",
493

  
494
					"descriptions.elements.states.$",
495
					"descriptions.elements.statisticalValues.$",
496
		            
497
		            
498
		            // DescriptiveContentProvider.getContainerTreeForDesription()
499
		            // FeatureNodeContainerTree.getDescriptionsElementsForFeature()		            
500
		            // DescriptionHelper.getElementText()
501

  
502
		            // CdmBase 					: toOne-> "created, createdBy, uuid"
503
					// VersionableEntity 		: toOne-> "updated, updatedBy"
504
					// AnnotatableEntity 		: toMany-> "annotations, markers"
505
					// ReferencedEntityBase		: toOne-> "citation" 	
506
					// DescriptionElementSource	: toOne-> "nameUsedInSource, sourcedObj"
507
					"descriptions.elements.sources.$",
508

  
509
					// NamedArea.labelWithLevel()
510

  
511
		            // CdmBase 					: toOne-> "created, createdBy, uuid"
512
					// VersionableEntity 		: toOne-> "updated, updatedBy"
513
					// AnnotatableEntity 		: toMany-> "annotations, markers"
514
					// ReferencedEntityBase		: toOne-> "citation" 	
515
					// NamedArea				: toMany->"" (available: "allLevelList, generalizationOf, includes, waterbodiesOrCountries" )
516
					//							: toOne-> "hierarchieList, kindOf, level, partOf, pointApproximation, shape, type, validPeriod"
375 517
					"descriptions.elements.area.$",
376
					"descriptions.elements.multilanguageText",
377
					"descriptions.elements.media.representations.parts",
378
					"descriptions.elements.media.title",
379
					// descriptin element supplemental
380
					"descriptions.elements.annotations.annotationType",
381
					"descriptions.elements.markers",
382
					"descriptions.elements.credits",
383
					"descriptions.elements.extensions",
384
					"descriptions.elements.rights",
385
					"descriptions.elements.sources",
386
					// supplemental
387
					"annotations.annotationType",
388
					"markers",
389
					"credits",
390
					"extensions",
391
					"rights",
392
					"sources"
518
					
519
					// NameRelationshipDetailSection.createElementComposite()
520
					// NameRelationshipDetailElement.setEntity()
521
					"name.nameRelations.$",
522
					"name.status.$",
523
					
524
//					"homotypicGroup.typifiedNames.synonyms.*",
525
//					"homotypicGroup.typifiedNames.synonyms.status.$",
526
//					"homotypicGroup.synonymsInGroup.*",
527
					
528
//		            "relationsToThisTaxon.fromTaxon.name",
529
//
530
//		            "name.$",
531
//		            "name.rank.representations",
532
//		            "name.status.type.representations",
533
//
534
//		            // taxon descriptions
535
//		            "descriptions.elements.area.$",
536
//		            "descriptions.elements.multilanguageText",
537
//		            "descriptions.elements.media.representations.parts",
538
//		            "descriptions.elements.media.title",
539
//		            
540
//
541
//					"homotypicGroup.synonymsInGroup.synonym.synonymRelations.synonym.name",
542
//					"homotypicGroup.synonymsInGroup.synonym.synonymRelations.synonym.annotations.$",
543
//					// synonyms
544
//					"synonymRelations.synonym.name.homotypicalGroup.typifiedNames",
545
//					"synonymRelations.synonym.name.status",
546
//					"synonymRelations.synonym.name.relationsToThisName.fromTaxon.name",
547
//					// synonym name
548
//					"synonymRelations.synonym.name.descriptions.elements",
549
//					"synonymRelations.synonym.name.typeDesignations", 
550
//					"synonymRelations.synonym.name.relationsToThisName",
551
//					"synonymRelations.synonym.name.relationsFromThisName",
552
//					"synonymRelations.synonym.name.homotypicalGroup.typifiedNames",
553
//					"synonymRelations.synonym.name.rank.representations",
554
//					"synonymRelations.synonym.name.status.type.representations",
555
//					// snonym name supplemental
556
//					"synonymRelations.synonym.name.annotations",
557
//					"synonymRelations.synonym.name.annotations.annotationType",
558
//					"synonymRelations.synonym.name.annotations.commentator",
559
//					"synonymRelations.synonym.name.markers",
560
//					"synonymRelations.synonym.name.markers.markerType",
561
//					"synonymRelations.synonym.name.credits",
562
//					"synonymRelations.synonym.name.extensions",
563
//					"synonymRelations.synonym.name.rights",
564
//					"synonymRelations.synonym.name.rights.agent",
565
//					"synonymRelations.synonym.name.rights.type",
566
//					"synonymRelations.synonym.name.sources",
567
//					"synonymRelations.synonym.name.sources.citation",
568
//					"synonymRelations.synonym.name.combinationAuthor",
569
//					"synonymRelations.synonym.name.combinationAuthor.contact.addresses",
570
//					"synonymRelations.synonym.name.combinationAuthor.contact.emailAddresses",
571
//					"synonymRelations.synonym.name.combinationAuthor.contact.faxNumbers",
572
//					"synonymRelations.synonym.name.combinationAuthor.contact.phoneNumbers",
573
//					"synonymRelations.synonym.name.combinationAuthor.contact.urls",
574
//					"synonymRelations.synonym.name.combinationAuthor.institutionalMembership",
575
//					"synonymRelations.synonym.name.combinationAuthor.institutionalMembership.types",
576
//					"synonymRelations.synonym.name.exCombinationAuthor",
577
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.addresses",
578
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.emailAddresses",
579
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.faxNumbers",
580
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.phoneNumbers",
581
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.urls",
582
//					"synonymRelations.synonym.name.exCombinationAuthor.institutionalMembership",
583
//					"synonymRelations.synonym.name.exCombinationAuthor.institutionalMembership.types",
584
//					"synonymRelations.synonym.name.basionymAuthor",
585
//					"synonymRelations.synonym.name.basionymAuthor.contact.addresses",
586
//					"synonymRelations.synonym.name.basionymAuthor.contact.emailAddresses",
587
//					"synonymRelations.synonym.name.basionymAuthor.contact.faxNumbers",
588
//					"synonymRelations.synonym.name.basionymAuthor.contact.phoneNumbers",
589
//					"synonymRelations.synonym.name.basionymAuthor.contact.urls",
590
//					"synonymRelations.synonym.name.basionymAuthor.institutionalMembership",
591
//					"synonymRelations.synonym.name.basionymAuthor.institutionalMembership.types",
592
//					"synonymRelations.synonym.name.exBasionymAuthor",
593
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.addresses",
594
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.emailAddresses",
595
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.faxNumbers",
596
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.phoneNumbers",
597
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.urls",
598
//					"synonymRelations.synonym.name.exBasionymAuthor.institutionalMembership",
599
//					"synonymRelations.synonym.name.exBasionymAuthor.institutionalMembership.types",
600
//					"synonymRelations.synonym.name.nomenclaturalReference",
601
//					"synonymRelations.synonym.name.sec",
602
//					"synonymRelations.synonym.sec",
603
//					"synonymRelations.synonym.annotations",
604
//					"synonymRelations.synonym.annotations.annotationType",
605
//					"synonymRelations.synonym.annotations.commentator",
606
//					"synonymRelations.synonym.markers",
607
//					"synonymRelations.synonym.markers.markerType",
608
//					"synonymRelations.synonym.credits",
609
//					"synonymRelations.synonym.extensions",
610
//					"synonymRelations.synonym.rights",
611
//					"synonymRelations.synonym.rights.agent",
612
//					"synonymRelations.synonym.rights.type",
613
//					"synonymRelations.synonym.sources",
614
//					"synonymRelations.synonym.sources.citation",
615
//					//
616
//					"relationsToThisTaxon",
617
//					"relationsFromThisTaxon",
618
//					// taxon relations 
619
//					"relationsToThisName.fromTaxon.name",
620
//					// the name
621
//					"name.nomenclaturalReference",
622
//					"name.descriptions.elements",
623
//					"name.typeDesignations", 
624
//					"name.nameRelations.type",
625
//					"name.homotypicalGroup.typifiedNames",
626
//					"name.rank.representations",
627
//					"name.status.type.representations",
628
//					// name supplemental
629
//					"name.combinationAuthor",
630
//					"name.combinationAuthor.contact.addresses",
631
//					"name.combinationAuthor.contact.emailAddresses",
632
//					"name.combinationAuthor.contact.faxNumbers",
633
//					"name.combinationAuthor.contact.phoneNumbers",
634
//					"name.combinationAuthor.contact.urls",
635
//					"name.combinationAuthor.institutionalMembership",
636
//					"name.combinationAuthor.institutionalMembership.types",
637
//					"name.exCombinationAuthor",
638
//					"name.exCombinationAuthor.contact.addresses",
639
//					"name.exCombinationAuthor.contact.emailAddresses",
640
//					"name.exCombinationAuthor.contact.faxNumbers",
641
//					"name.exCombinationAuthor.contact.phoneNumbers",
642
//					"name.exCombinationAuthor.contact.urls",
643
//					"name.exCombinationAuthor.institutionalMembership",
644
//					"name.exCombinationAuthor.institutionalMembership.types",
645
//					"name.basionymAuthor",
646
//					"name.basionymAuthor.contact.addresses",
647
//					"name.basionymAuthor.contact.emailAddresses",
648
//					"name.basionymAuthor.contact.faxNumbers",
649
//					"name.basionymAuthor.contact.phoneNumbers",
650
//					"name.basionymAuthor.contact.urls",
651
//					"name.basionymAuthor.institutionalMembership",
652
//					"name.basionymAuthor.institutionalMembership.types",
653
//					"name.exBasionymAuthor",
654
//					"name.exBasionymAuthor.contact.addresses",
655
//					"name.exBasionymAuthor.contact.emailAddresses",
656
//					"name.exBasionymAuthor.contact.faxNumbers",
657
//					"name.exBasionymAuthor.contact.phoneNumbers",
658
//					"name.exBasionymAuthor.contact.urls",
659
//					"name.exBasionymAuthor.institutionalMembership",
660
//					"name.exBasionymAuthor.institutionalMembership.types",
661
//					"name.nomenclaturalReference",
662
//					"name.annotations",
663
//					"name.annotations.annotationType",
664
//					"name.annotations.commentator",
665
//					"name.markers",
666
//					"name.markers.markerType",
667
//					"name.credits",
668
//					"name.extensions",
669
//					"name.rights",
670
//					"name.rights.agent",
671
//					"name.rights.type",
672
//					"name.sources",
673
//					"name.sources.citation",
674
//					"media.annotations",
675
//					"media.annotations.annotationType",
676
//					"media.annotations.commentator",
677
//					"media.markers",
678
//					"media.markers.markerType",
679
//					"media.credits",
680
//					"media.extensions",
681
//					"media.rights",
682
//					"media.rights.type",
683
//					"media.rights.agent",
684
//					"media.sources",
685
//					"media.sources.citation",
686
//					"media.representations",
687
//					"media.representations.parts",
688
//					"media.title",
689
//					"media.allDescriptions",
690
////					"media.representations.mediaRepresentationParts.mediaRepresentation",
691
//					// taxon descriptions
692
//					"descriptions.describedSpecimenOrObservations",
693
//					"descriptions.sources",
694
//					"descriptions.sources.citation",
695
//					"descriptions.scopes",
696
//					// taxon description supplemental
697
//					"descriptions.annotations",
698
//					"descriptions.annotations.annotationType",
699
//					"descriptions.annotations.commentator",
700
//					"descriptions.markers",
701
//					"descriptions.markers.markerType",
702
//					"descriptions.credits",
703
//					"descriptions.extensions",
704
//					"descriptions.rights",
705
//					// description elements
706
//					"descriptions.elements.*",
707
//					"descriptions.elements.media",
708
//					"descriptions.elements.media.title",
709
//					"descriptions.elements.media.allDescriptions",
710
//					"descriptions.elements.media.representations",
711
//					"descriptions.elements.media.representations.parts",
712
////					"descriptions.elements.media.representations.mediaRepresentationParts.mediaRepresentation",
713
//					"descriptions.elements.modifiers",
714
//					"descriptions.elements.modifyingText",
715
//					"descriptions.elements.sources",
716
//					"descriptions.elements.sources.citation",
717
//					"descriptions.elements.sources.nameUsedInSource",
718
//					"descriptions.elements.area.$",
719
//					"descriptions.elements.multilanguageText",
720
//					"descriptions.elements.media",
721
//					"descriptions.elements.media.annotations",
722
//					"descriptions.elements.media.annotations.annotationType",
723
//					"descriptions.elements.media.annotations.commentator",
724
//					"descriptions.elements.media.markers",
725
//					"descriptions.elements.media.markers.markerType",
726
//					"descriptions.elements.media.credits",
727
//					"descriptions.elements.media.extensions",
728
//					"descriptions.elements.media.rights",
729
//					"descriptions.elements.media.rights.type",
730
//					"descriptions.elements.media.rights.agent",
731
//					"descriptions.elements.media.sources",
732
//					"descriptions.elements.media.sources.citation",
733
//					// descriptin element supplemental
734
//					"descriptions.elements.annotations",
735
//					"descriptions.elements.annotations.annotationType",
736
//					"descriptions.elements.annotations.commentator",
737
//					"descriptions.elements.markers",
738
//					"descriptions.elements.markers.markerType",
739
//					"descriptions.elements.credits",
740
//					"descriptions.elements.extensions",
741
//					"descriptions.elements.rights",
742
//					"descriptions.elements.sources",
743
//					"descriptions.elements.sources.citation",
744
//					"descriptions.elements.sources.annotations",
745
//					"descriptions.elements.sources.annotations.annotationType",
746
//					"descriptions.elements.sources.markers",
747
//					"descriptions.elements.sources.markers.markerType",
748
//					// supplemental
749
//					"authorTeam",
750
//					"authorTeam.contact.addresses",
751
//					"authorTeam.contact.emailAddresses",
752
//					"authorTeam.contact.faxNumbers",
753
//					"authorTeam.contact.phoneNumbers",
754
//					"authorTeam.contact.urls",
755
//					"authorTeam.institutionalMembership",
756
//					"authorTeam.institutionalMembership.types",
757
//					"authorTeam.teamMembers",
758
//					"authorTeam.teamMembers.institutionalMembership",
759
//					"authorTeam.teamMembers.institutionalMembership.types",
760
//					"agent",
761
//					"agent.contact.addresses",
762
//					"agent.contact.emailAddresses",
763
//					"agent.contact.faxNumbers",
764
//					"agent.contact.phoneNumbers",
765
//					"agent.contact.urls",
766
//					"agent.institutionalMembership",
767
//					"agent.institutionalMembership.types",
768
//					"agent.teamMembers",
769
//					"agent.teamMembers.institutionalMembership",
770
//					"agent.teamMembers.institutionalMembership.types"
393 771
					});
394 772
			
395 773
			taxon = (Taxon) CdmStore.getService(ITaxonService.class).load(taxonNode.getTaxon().getUuid(), TAXON_INIT_STRATEGY);
......
397 775
		
398 776
		return taxon;
399 777
	}
778

  
779
//	public Taxon getTaxon(){
780
//		if(taxon == null){
781
//			List<String> TAXON_INIT_STRATEGY = Arrays.asList(new String []{
782
//					"*",
783
//					// synonyms
784
//					"synonymRelations.synonym.name.homotypicalGroup.typifiedNames",
785
//					"synonymRelations.synonym.name.status",
786
//					"synonymRelations.synonym.name.relationsToThisName.fromTaxon.name",
787
//					// synonym name
788
//					"synonymRelations.synonym.name.descriptions.elements",
789
//					"synonymRelations.synonym.name.typeDesignations", 
790
//					"synonymRelations.synonym.name.relationsToThisName",
791
//					"synonymRelations.synonym.name.relationsFromThisName",
792
//					"synonymRelations.synonym.name.homotypicalGroup.typifiedNames",
793
//					"synonymRelations.synonym.name.rank.representations",
794
//					"synonymRelations.synonym.name.status.type.representations",
795
//					// snonym name supplemental
796
//					"synonymRelations.synonym.name.annotations",
797
//					"synonymRelations.synonym.name.annotations.annotationType",
798
//					"synonymRelations.synonym.name.annotations.commentator",
799
//					"synonymRelations.synonym.name.markers",
800
//					"synonymRelations.synonym.name.markers.markerType",
801
//					"synonymRelations.synonym.name.credits",
802
//					"synonymRelations.synonym.name.extensions",
803
//					"synonymRelations.synonym.name.rights",
804
//					"synonymRelations.synonym.name.rights.agent",
805
//					"synonymRelations.synonym.name.rights.type",
806
//					"synonymRelations.synonym.name.sources",
807
//					"synonymRelations.synonym.name.sources.citation",
808
//					"synonymRelations.synonym.name.combinationAuthor",
809
//					"synonymRelations.synonym.name.combinationAuthor.contact.addresses",
810
//					"synonymRelations.synonym.name.combinationAuthor.contact.emailAddresses",
811
//					"synonymRelations.synonym.name.combinationAuthor.contact.faxNumbers",
812
//					"synonymRelations.synonym.name.combinationAuthor.contact.phoneNumbers",
813
//					"synonymRelations.synonym.name.combinationAuthor.contact.urls",
814
//					"synonymRelations.synonym.name.combinationAuthor.institutionalMembership",
815
//					"synonymRelations.synonym.name.combinationAuthor.institutionalMembership.types",
816
//					"synonymRelations.synonym.name.exCombinationAuthor",
817
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.addresses",
818
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.emailAddresses",
819
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.faxNumbers",
820
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.phoneNumbers",
821
//					"synonymRelations.synonym.name.exCombinationAuthor.contact.urls",
822
//					"synonymRelations.synonym.name.exCombinationAuthor.institutionalMembership",
823
//					"synonymRelations.synonym.name.exCombinationAuthor.institutionalMembership.types",
824
//					"synonymRelations.synonym.name.basionymAuthor",
825
//					"synonymRelations.synonym.name.basionymAuthor.contact.addresses",
826
//					"synonymRelations.synonym.name.basionymAuthor.contact.emailAddresses",
827
//					"synonymRelations.synonym.name.basionymAuthor.contact.faxNumbers",
828
//					"synonymRelations.synonym.name.basionymAuthor.contact.phoneNumbers",
829
//					"synonymRelations.synonym.name.basionymAuthor.contact.urls",
830
//					"synonymRelations.synonym.name.basionymAuthor.institutionalMembership",
831
//					"synonymRelations.synonym.name.basionymAuthor.institutionalMembership.types",
832
//					"synonymRelations.synonym.name.exBasionymAuthor",
833
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.addresses",
834
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.emailAddresses",
835
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.faxNumbers",
836
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.phoneNumbers",
837
//					"synonymRelations.synonym.name.exBasionymAuthor.contact.urls",
838
//					"synonymRelations.synonym.name.exBasionymAuthor.institutionalMembership",
839
//					"synonymRelations.synonym.name.exBasionymAuthor.institutionalMembership.types",
840
//					"synonymRelations.synonym.name.nomenclaturalReference",
841
//					"synonymRelations.synonym.name.sec",
842
//					"synonymRelations.synonym.sec",
843
//					"synonymRelations.synonym.annotations",
844
//					"synonymRelations.synonym.annotations.annotationType",
845
//					"synonymRelations.synonym.annotations.commentator",
846
//					"synonymRelations.synonym.markers",
847
//					"synonymRelations.synonym.markers.markerType",
848
//					"synonymRelations.synonym.credits",
849
//					"synonymRelations.synonym.extensions",
850
//					"synonymRelations.synonym.rights",
851
//					"synonymRelations.synonym.rights.agent",
852
//					"synonymRelations.synonym.rights.type",
853
//					"synonymRelations.synonym.sources",
854
//					"synonymRelations.synonym.sources.citation",
855
//					//
856
//					"relationsToThisTaxon",
857
//					"relationsFromThisTaxon",
858
//					// taxon relations 
859
//					"relationsToThisName.fromTaxon.name",
860
//					// the name
861
//					"name.nomenclaturalReference",
862
//					"name.descriptions.elements",
863
//					"name.typeDesignations", 
864
//					"name.nameRelations.type",
865
//					"name.homotypicalGroup.typifiedNames",
866
//					"homotypicGroup.synonymsInGroup.synonym.sec",
867
//					"homotypicGroup.synonymsInGroup.synonym.name.nomenclaturalReference",
868
//					"homotypicGroup.synonymsInGroup.synonym.name.annotations",
869
//					"homotypicGroup.synonymsInGroup.synonym.name.annotations.annotationType",
870
//					"homotypicGroup.synonymsInGroup.synonym.name.annotations.commentator",
871
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor",
872
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor.contact.addresses",
873
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor.contact.emailAddresses",
874
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor.contact.faxNumbers",
875
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor.contact.phoneNumbers",
876
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor.contact.urls",
877
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor.institutionalMembership",
878
//					"homotypicGroup.synonymsInGroup.synonym.name.combinationAuthor.institutionalMembership.types",
879
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor",
880
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor.contact.addresses",
881
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor.contact.emailAddresses",
882
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor.contact.faxNumbers",
883
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor.contact.phoneNumbers",
884
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor.contact.urls",
885
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor.institutionalMembership",
886
//					"homotypicGroup.synonymsInGroup.synonym.name.exCombinationAuthor.institutionalMembership.types",
887
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor",
888
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor.contact.addresses",
889
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor.contact.emailAddresses",
890
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor.contact.faxNumbers",
891
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor.contact.phoneNumbers",
892
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor.contact.urls",
893
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor.institutionalMembership",
894
//					"homotypicGroup.synonymsInGroup.synonym.name.basionymAuthor.institutionalMembership.types",
895
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor",
896
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor.contact.addresses",
897
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor.contact.emailAddresses",
898
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor.contact.faxNumbers",
899
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor.contact.phoneNumbers",
900
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor.contact.urls",
901
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor.institutionalMembership",
902
//					"homotypicGroup.synonymsInGroup.synonym.name.exBasionymAuthor.institutionalMembership.types",
903
//					"homotypicGroup.synonymsInGroup.synonym.name.rights",
904
//					"homotypicGroup.synonymsInGroup.synonym.name.rights.agent",
905
//					"homotypicGroup.synonymsInGroup.synonym.name.rights.type",
906
//					"homotypicGroup.synonymsInGroup.synonym.annotations.annotationType",
907
//					"homotypicGroup.synonymsInGroup.synonym.annotations.commentator",
908
//					"name.rank.representations",
909
//					"name.status.type.representations",
910
//					// name supplemental
911
//					"name.combinationAuthor",
912
//					"name.combinationAuthor.contact.addresses",
913
//					"name.combinationAuthor.contact.emailAddresses",
914
//					"name.combinationAuthor.contact.faxNumbers",
915
//					"name.combinationAuthor.contact.phoneNumbers",
916
//					"name.combinationAuthor.contact.urls",
917
//					"name.combinationAuthor.institutionalMembership",
918
//					"name.combinationAuthor.institutionalMembership.types",
919
//					"name.exCombinationAuthor",
920
//					"name.exCombinationAuthor.contact.addresses",
921
//					"name.exCombinationAuthor.contact.emailAddresses",
922
//					"name.exCombinationAuthor.contact.faxNumbers",
923
//					"name.exCombinationAuthor.contact.phoneNumbers",
924
//					"name.exCombinationAuthor.contact.urls",
925
//					"name.exCombinationAuthor.institutionalMembership",
926
//					"name.exCombinationAuthor.institutionalMembership.types",
927
//					"name.basionymAuthor",
928
//					"name.basionymAuthor.contact.addresses",
929
//					"name.basionymAuthor.contact.emailAddresses",
930
//					"name.basionymAuthor.contact.faxNumbers",
931
//					"name.basionymAuthor.contact.phoneNumbers",
932
//					"name.basionymAuthor.contact.urls",
933
//					"name.basionymAuthor.institutionalMembership",
934
//					"name.basionymAuthor.institutionalMembership.types",
935
//					"name.exBasionymAuthor",
936
//					"name.exBasionymAuthor.contact.addresses",
937
//					"name.exBasionymAuthor.contact.emailAddresses",
938
//					"name.exBasionymAuthor.contact.faxNumbers",
939
//					"name.exBasionymAuthor.contact.phoneNumbers",
940
//					"name.exBasionymAuthor.contact.urls",
941
//					"name.exBasionymAuthor.institutionalMembership",
942
//					"name.exBasionymAuthor.institutionalMembership.types",
943
//					"name.nomenclaturalReference",
944
//					"name.annotations",
945
//					"name.annotations.annotationType",
946
//					"name.annotations.commentator",
947
//					"name.markers",
948
//					"name.markers.markerType",
949
//					"name.credits",
950
//					"name.extensions",
951
//					"name.rights",
952
//					"name.rights.agent",
953
//					"name.rights.type",
954
//					"name.sources",
955
//					"name.sources.citation",
956
//					"media.annotations",
957
//					"media.annotations.annotationType",
958
//					"media.annotations.commentator",
959
//					"media.markers",
960
//					"media.markers.markerType",
961
//					"media.credits",
962
//					"media.extensions",
963
//					"media.rights",
964
//					"media.rights.type",
965
//					"media.rights.agent",
966
//					"media.sources",
967
//					"media.sources.citation",
968
//					"media.representations",
969
//					"media.representations.parts",
970
//					"media.title",
971
//					"media.allDescriptions",
972
////					"media.representations.mediaRepresentationParts.mediaRepresentation",
973
//					"rights.type",
974
//					"rights.agent",
975
//					// taxon descriptions
976
//					"descriptions.describedSpecimenOrObservations",
977
//					"descriptions.sources",
978
//					"descriptions.sources.citation",
979
//					"descriptions.scopes",
980
//					// taxon description supplemental
981
//					"descriptions.annotations",
982
//					"descriptions.annotations.annotationType",
983
//					"descriptions.annotations.commentator",
984
//					"descriptions.markers",
985
//					"descriptions.markers.markerType",
986
//					"descriptions.credits",
987
//					"descriptions.extensions",
988
//					"descriptions.rights",
989
//					// description elements
990
//					"descriptions.elements.*",
991
//					"descriptions.elements.media",
992
//					"descriptions.elements.media.title",
993
//					"descriptions.elements.media.allDescriptions",
994
//					"descriptions.elements.media.representations",
995
//					"descriptions.elements.media.representations.parts",
996
////					"descriptions.elements.media.representations.mediaRepresentationParts.mediaRepresentation",
997
//					"descriptions.elements.modifiers",
998
//					"descriptions.elements.modifyingText",
999
//					"descriptions.elements.sources",
1000
//					"descriptions.elements.sources.citation",
1001
//					"descriptions.elements.sources.nameUsedInSource",
1002
//					"descriptions.elements.area.$",
1003
//					"descriptions.elements.multilanguageText",
1004
//					"descriptions.elements.media",
1005
//					"descriptions.elements.media.annotations",
1006
//					"descriptions.elements.media.annotations.annotationType",
1007
//					"descriptions.elements.media.annotations.commentator",
1008
//					"descriptions.elements.media.markers",
1009
//					"descriptions.elements.media.markers.markerType",
1010
//					"descriptions.elements.media.credits",
1011
//					"descriptions.elements.media.extensions",
1012
//					"descriptions.elements.media.rights",
1013
//					"descriptions.elements.media.rights.type",
1014
//					"descriptions.elements.media.rights.agent",
1015
//					"descriptions.elements.media.sources",
1016
//					"descriptions.elements.media.sources.citation",
1017
//					// descriptin element supplemental
1018
//					"descriptions.elements.annotations",
1019
//					"descriptions.elements.annotations.annotationType",
1020
//					"descriptions.elements.annotations.commentator",
1021
//					"descriptions.elements.markers",
1022
//					"descriptions.elements.markers.markerType",
1023
//					"descriptions.elements.credits",
1024
//					"descriptions.elements.extensions",
1025
//					"descriptions.elements.rights",
1026
//					"descriptions.elements.sources",
1027
//					"descriptions.elements.sources.citation",
1028
//					"descriptions.elements.sources.annotations",
1029
//					"descriptions.elements.sources.annotations.annotationType",
1030
//					"descriptions.elements.sources.markers",
1031
//					"descriptions.elements.sources.markers.markerType",
1032
//					// supplemental
1033
//					"annotations.annotationType",
1034
//					"annotations.commentator",
1035
//					"markers",
1036
//					"markers.markerType",
1037
//					"credits",
1038
//					"extensions",
1039
//					"rights",
1040
//					"sources",
1041
//					"sources.citation",
1042
//					"sec",
1043
//					"authorTeam",
1044
//					"authorTeam.contact.addresses",
1045
//					"authorTeam.contact.emailAddresses",
1046
//					"authorTeam.contact.faxNumbers",
1047
//					"authorTeam.contact.phoneNumbers",
1048
//					"authorTeam.contact.urls",
1049
//					"authorTeam.institutionalMembership",
1050
//					"authorTeam.institutionalMembership.types",
1051
//					"authorTeam.teamMembers",
1052
//					"authorTeam.teamMembers.institutionalMembership",
1053
//					"authorTeam.teamMembers.institutionalMembership.types",
1054
//					"agent",
1055
//					"agent.contact.addresses",
1056
//					"agent.contact.emailAddresses",
1057
//					"agent.contact.faxNumbers",
1058
//					"agent.contact.phoneNumbers",
1059
//					"agent.contact.urls",
1060
//					"agent.institutionalMembership",
1061
//					"agent.institutionalMembership.types",
1062
//					"agent.teamMembers",
1063
//					"agent.teamMembers.institutionalMembership",
1064
//					"agent.teamMembers.institutionalMembership.types"
1065
//					});
1066
//			
1067
//			taxon = (Taxon) CdmStore.getService(ITaxonService.class).load(taxonNode.getTaxon().getUuid(), TAXON_INIT_STRATEGY);
1068
//		}
1069
//		
1070
//		return taxon;
1071
//	}
400 1072
	
401 1073
	/**
402 1074
	 * <p>Getter for the field <code>taxonNode</code>.</p>

Also available in: Unified diff