1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.editor;
|
11
|
|
12
|
import java.util.Arrays;
|
13
|
import java.util.HashSet;
|
14
|
import java.util.List;
|
15
|
import java.util.Set;
|
16
|
import java.util.UUID;
|
17
|
|
18
|
import org.eclipse.jface.resource.ImageDescriptor;
|
19
|
import org.eclipse.ui.IEditorInput;
|
20
|
import org.eclipse.ui.IMemento;
|
21
|
import org.eclipse.ui.IPersistableElement;
|
22
|
|
23
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
24
|
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
|
25
|
import eu.etaxonomy.cdm.api.service.IClassificationService;
|
26
|
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
|
27
|
import eu.etaxonomy.cdm.api.service.ITaxonService;
|
28
|
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
29
|
import eu.etaxonomy.cdm.model.taxon.ITreeNode;
|
30
|
import eu.etaxonomy.cdm.model.taxon.Synonym;
|
31
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
32
|
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
|
33
|
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
|
34
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
|
35
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
|
36
|
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
|
37
|
import eu.etaxonomy.taxeditor.model.DataChangeBridge;
|
38
|
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
|
39
|
import eu.etaxonomy.taxeditor.store.CdmStore;
|
40
|
|
41
|
/**
|
42
|
* <p>TaxonEditorInput class.</p>
|
43
|
*
|
44
|
* @author n.hoffmann
|
45
|
* @created 19.03.2009
|
46
|
* @version 1.0
|
47
|
*/
|
48
|
public class TaxonEditorInput implements IEditorInput, IConversationEnabled, IPersistableElement {
|
49
|
|
50
|
private ConversationHolder conversation;
|
51
|
|
52
|
private TaxonNode taxonNode;
|
53
|
|
54
|
private TaxonEditorInputDataChangeBehaviour dataChangeBehavior;
|
55
|
|
56
|
private TaxonBase initiallySelectedTaxonBase;
|
57
|
|
58
|
private Taxon taxon;
|
59
|
|
60
|
private TaxonEditorInput(TaxonNode taxonNode, ConversationHolder conversation){
|
61
|
this.conversation = conversation;
|
62
|
this.taxonNode = taxonNode;
|
63
|
}
|
64
|
|
65
|
|
66
|
|
67
|
/**
|
68
|
* <p>NewInstance</p>
|
69
|
*
|
70
|
* @param taxonNodeUuid a {@link java.util.UUID} object.
|
71
|
* @return a {@link eu.etaxonomy.taxeditor.editor.TaxonEditorInput} object.
|
72
|
* @throws java.lang.Exception if any.
|
73
|
*/
|
74
|
public static TaxonEditorInput NewInstance(UUID taxonNodeUuid) throws Exception{
|
75
|
try{
|
76
|
ConversationHolder conversation = CdmStore.createConversation();
|
77
|
return NewInstance(taxonNodeUuid, conversation);
|
78
|
}catch(Exception e){
|
79
|
throw e;
|
80
|
}
|
81
|
}
|
82
|
|
83
|
/**
|
84
|
*
|
85
|
* @param taxonNodeUuid
|
86
|
* @param conversation
|
87
|
* @return
|
88
|
*/
|
89
|
private static TaxonEditorInput NewInstance(UUID taxonNodeUuid, ConversationHolder conversation){
|
90
|
|
91
|
TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeUuid);
|
92
|
|
93
|
if(taxonNode == null){
|
94
|
EditorUtil.warningDialog("Not yet implemented", TaxonEditorInput.class, "Selected element is not type TaxonBase.");
|
95
|
return null;
|
96
|
}
|
97
|
|
98
|
return new TaxonEditorInput(taxonNode, conversation);
|
99
|
}
|
100
|
|
101
|
/**
|
102
|
* <p>NewInstanceFromTaxonBase</p>
|
103
|
*
|
104
|
* @param taxonBaseUuid a {@link java.util.UUID} object.
|
105
|
* @return a {@link eu.etaxonomy.taxeditor.editor.TaxonEditorInput} object.
|
106
|
*/
|
107
|
public static TaxonEditorInput NewInstanceFromTaxonBase(UUID taxonBaseUuid){
|
108
|
ConversationHolder conversation = CdmStore.createConversation();
|
109
|
|
110
|
TaxonEditorInput input = null;
|
111
|
|
112
|
TaxonBase taxonBase = CdmStore.getService(ITaxonService.class).find(taxonBaseUuid);
|
113
|
|
114
|
if(taxonBase instanceof Taxon){
|
115
|
Taxon taxon = (Taxon) taxonBase;
|
116
|
|
117
|
if (taxon.isMisapplication()){
|
118
|
// TODO get accepted taxon
|
119
|
EditorUtil.info("trying to open Mispplied Name ");
|
120
|
|
121
|
Set<Taxon> acceptedTaxa = new HashSet<Taxon>();
|
122
|
Set<TaxonRelationship> relations = taxon.getRelationsFromThisTaxon();
|
123
|
for(TaxonRelationship relation : relations){
|
124
|
if(relation.getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())){
|
125
|
acceptedTaxa.add(relation.getToTaxon());
|
126
|
}
|
127
|
}
|
128
|
input = getInputForMultipleTaxa(conversation, acceptedTaxa);
|
129
|
|
130
|
}else{
|
131
|
input = getInputForMultipleNodes(conversation, taxon.getTaxonNodes());
|
132
|
}
|
133
|
}else if(taxonBase instanceof Synonym){
|
134
|
Synonym synonym = (Synonym) taxonBase;
|
135
|
|
136
|
Set<Taxon> taxa = synonym.getAcceptedTaxa();
|
137
|
input = getInputForMultipleTaxa(conversation, taxa);
|
138
|
}
|
139
|
|
140
|
input.setInitiallySelectedTaxonBase(taxonBase);
|
141
|
|
142
|
return input;
|
143
|
}
|
144
|
|
145
|
private static TaxonEditorInput getInputForMultipleNodes(ConversationHolder conversation, Set<TaxonNode> taxonNodes){
|
146
|
if(taxonNodes.size() == 1){
|
147
|
TaxonNode taxonNode = taxonNodes.iterator().next();
|
148
|
return NewInstance(taxonNode.getUuid(), conversation);
|
149
|
}else if(taxonNodes.size() > 1){
|
150
|
TaxonNode taxonNode = ChooseFromMultipleTaxonNodesDialog.choose(taxonNodes);
|
151
|
if(taxonNode != null){
|
152
|
return NewInstance(taxonNode.getUuid(), conversation);
|
153
|
}
|
154
|
}else if(taxonNodes.size() == 0){
|
155
|
// this is an undesired state
|
156
|
EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "The accepted taxon is not part of any classification. This should not have happened.");
|
157
|
}
|
158
|
return null;
|
159
|
}
|
160
|
|
161
|
private static TaxonEditorInput getInputForMultipleTaxa(ConversationHolder conversation, Set<Taxon> taxa){
|
162
|
if(taxa.size() == 1){
|
163
|
Taxon taxon = taxa.iterator().next();
|
164
|
Set<TaxonNode> nodes = taxon.getTaxonNodes();
|
165
|
return getInputForMultipleNodes(conversation, nodes);
|
166
|
}else if(taxa.size() > 1){
|
167
|
// FIXME implement a dialog that shows all possible taxa and let the user choose which he wants to open.
|
168
|
EditorUtil.warningDialog("Not implemented yet", TaxonEditorInput.class, "There are multiple accepted taxa for the current selection. We currently do not know which one you want to open." +
|
169
|
" This case is not handled yet by the software.");
|
170
|
}else if(taxa.size() == 0){
|
171
|
// this is an undesired state
|
172
|
EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "Trying to open accepted taxon for a synonym or misapplication but" +
|
173
|
" no accepted taxa are present. This should not have happened.");
|
174
|
}
|
175
|
return null;
|
176
|
}
|
177
|
|
178
|
/**
|
179
|
* <p>NewEmptyInstance</p>
|
180
|
*
|
181
|
* @param parentNodeUuid a {@link java.util.UUID} object.
|
182
|
* @return a {@link eu.etaxonomy.taxeditor.editor.TaxonEditorInput} object.
|
183
|
*/
|
184
|
public static TaxonEditorInput NewEmptyInstance(UUID parentNodeUuid){
|
185
|
ConversationHolder conversation = CdmStore.createConversation();
|
186
|
|
187
|
TaxonNameBase<?, ?> name = PreferencesUtil.getPreferredNomenclaturalCode().getNewTaxonNameInstance(null);
|
188
|
ITreeNode parentNode = CdmStore.getService(IClassificationService.class).getTreeNodeByUuid(parentNodeUuid);
|
189
|
|
190
|
Taxon newTaxon = Taxon.NewInstance(name, parentNode.getReference());
|
191
|
TaxonNode newTaxonNode = parentNode.addChildTaxon(newTaxon, parentNode.getReference(), parentNode.getMicroReference(), null);
|
192
|
|
193
|
// add the new taxon to the editors persistence context
|
194
|
UUID newTaxonNodeUuid = CdmStore.getService(ITaxonNodeService.class).save(newTaxonNode);
|
195
|
|
196
|
return new TaxonEditorInput(newTaxonNode, conversation);
|
197
|
}
|
198
|
|
199
|
/* (non-Javadoc)
|
200
|
* @see org.eclipse.ui.IEditorInput#exists()
|
201
|
*/
|
202
|
/**
|
203
|
* <p>exists</p>
|
204
|
*
|
205
|
* @return a boolean.
|
206
|
*/
|
207
|
public boolean exists() {
|
208
|
return taxonNode != null;
|
209
|
}
|
210
|
|
211
|
/* (non-Javadoc)
|
212
|
* @see org.eclipse.ui.IEditorInput#getImageDescriptor()
|
213
|
*/
|
214
|
/**
|
215
|
* <p>getImageDescriptor</p>
|
216
|
*
|
217
|
* @return a {@link org.eclipse.jface.resource.ImageDescriptor} object.
|
218
|
*/
|
219
|
public ImageDescriptor getImageDescriptor() {
|
220
|
return null;
|
221
|
}
|
222
|
|
223
|
/* (non-Javadoc)
|
224
|
* @see org.eclipse.ui.IEditorInput#getName()
|
225
|
*/
|
226
|
/**
|
227
|
* <p>getName</p>
|
228
|
*
|
229
|
* @return a {@link java.lang.String} object.
|
230
|
*/
|
231
|
public String getName() {
|
232
|
if(getTaxon() == null){
|
233
|
return null;
|
234
|
}
|
235
|
TaxonNameBase<?, ?> name = getTaxon().getName();
|
236
|
if (name == null || name.getTitleCache() == null) {
|
237
|
return "New taxon";
|
238
|
} else {
|
239
|
return name.getTitleCache();
|
240
|
}
|
241
|
}
|
242
|
|
243
|
/* (non-Javadoc)
|
244
|
* @see org.eclipse.ui.IEditorInput#getPersistable()
|
245
|
*/
|
246
|
/**
|
247
|
* <p>getPersistable</p>
|
248
|
*
|
249
|
* @return a {@link org.eclipse.ui.IPersistableElement} object.
|
250
|
*/
|
251
|
public IPersistableElement getPersistable() {
|
252
|
// if(CdmStore.isActive()){
|
253
|
// TaxonNode test = CdmStore.getTaxonTreeService().getTaxonNodeByUuid(taxonNode.getUuid());
|
254
|
// boolean isPersistable = CdmStore.getTaxonTreeService().getTaxonNodeByUuid(taxonNode.getUuid()) != null;
|
255
|
// if (isPersistable) {
|
256
|
// return this;
|
257
|
// }
|
258
|
// }
|
259
|
return null;
|
260
|
}
|
261
|
|
262
|
/* (non-Javadoc)
|
263
|
* @see org.eclipse.ui.IEditorInput#getToolTipText()
|
264
|
*/
|
265
|
/**
|
266
|
* <p>getToolTipText</p>
|
267
|
*
|
268
|
* @return a {@link java.lang.String} object.
|
269
|
*/
|
270
|
public String getToolTipText() {
|
271
|
return getName();
|
272
|
}
|
273
|
|
274
|
/* (non-Javadoc)
|
275
|
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
276
|
*/
|
277
|
/** {@inheritDoc} */
|
278
|
public Object getAdapter(Class adapter) {
|
279
|
|
280
|
if (adapter == Taxon.class) {
|
281
|
return getTaxon();
|
282
|
}
|
283
|
|
284
|
if (adapter == TaxonNode.class) {
|
285
|
return taxonNode;
|
286
|
}
|
287
|
|
288
|
return null;
|
289
|
}
|
290
|
|
291
|
/**
|
292
|
* {@inheritDoc}
|
293
|
*
|
294
|
* Overrides equals to ensure that a taxon can only be edited by
|
295
|
* one editor at a time.
|
296
|
*/
|
297
|
public boolean equals(Object obj) {
|
298
|
if (TaxonEditorInput.class.equals(obj.getClass())
|
299
|
&& getTaxon() != null
|
300
|
&& getTaxon().equals(((TaxonEditorInput) obj).getTaxon())){
|
301
|
if(((TaxonEditorInput) obj).getInitiallySelectedTaxonBase() != null){
|
302
|
setInitiallySelectedTaxonBase(((TaxonEditorInput) obj).getInitiallySelectedTaxonBase());
|
303
|
}
|
304
|
return true;
|
305
|
}
|
306
|
return false;
|
307
|
}
|
308
|
|
309
|
/**
|
310
|
* <p>getTaxon</p>
|
311
|
*
|
312
|
* @return the taxon
|
313
|
*/
|
314
|
public Taxon getTaxon(){
|
315
|
if(taxon == null){
|
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"
|
325
|
"*",
|
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"
|
517
|
"descriptions.elements.area.$",
|
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"
|
771
|
});
|
772
|
|
773
|
taxon = (Taxon) CdmStore.getService(ITaxonService.class).load(taxonNode.getTaxon().getUuid(), TAXON_INIT_STRATEGY);
|
774
|
}
|
775
|
|
776
|
return taxon;
|
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
|
// }
|
1072
|
|
1073
|
/**
|
1074
|
* <p>Getter for the field <code>taxonNode</code>.</p>
|
1075
|
*
|
1076
|
* @return the taxonNode
|
1077
|
*/
|
1078
|
public TaxonNode getTaxonNode() {
|
1079
|
return taxonNode;
|
1080
|
}
|
1081
|
|
1082
|
/*
|
1083
|
* (non-Javadoc)
|
1084
|
* @see eu.etaxonomy.cdm.api.conversation.IConversationEnabled#getConversationHolder()
|
1085
|
*/
|
1086
|
/**
|
1087
|
* <p>getConversationHolder</p>
|
1088
|
*
|
1089
|
* @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
1090
|
*/
|
1091
|
public ConversationHolder getConversationHolder() {
|
1092
|
return conversation;
|
1093
|
}
|
1094
|
|
1095
|
/*
|
1096
|
* (non-Javadoc)
|
1097
|
* @see eu.etaxonomy.cdm.persistence.hibernate.ICdmPostCrudObserver#update(eu.etaxonomy.cdm.persistence.hibernate.CdmCrudEvent)
|
1098
|
*/
|
1099
|
/** {@inheritDoc} */
|
1100
|
public void update(CdmDataChangeMap events) {
|
1101
|
if(dataChangeBehavior == null){
|
1102
|
dataChangeBehavior = new TaxonEditorInputDataChangeBehaviour(this);
|
1103
|
}
|
1104
|
|
1105
|
DataChangeBridge.handleDataChange(events, dataChangeBehavior);
|
1106
|
}
|
1107
|
|
1108
|
/* (non-Javadoc)
|
1109
|
* @see org.eclipse.ui.IPersistableElement#getFactoryId()
|
1110
|
*/
|
1111
|
/**
|
1112
|
* <p>getFactoryId</p>
|
1113
|
*
|
1114
|
* @return a {@link java.lang.String} object.
|
1115
|
*/
|
1116
|
public String getFactoryId() {
|
1117
|
return TaxonEditorInputFactory.getFactoryId();
|
1118
|
}
|
1119
|
|
1120
|
/* (non-Javadoc)
|
1121
|
* @see org.eclipse.ui.IPersistable#saveState(org.eclipse.ui.IMemento)
|
1122
|
*/
|
1123
|
/** {@inheritDoc} */
|
1124
|
public void saveState(IMemento memento) {
|
1125
|
TaxonEditorInputFactory.saveState(memento, this);
|
1126
|
}
|
1127
|
|
1128
|
|
1129
|
/**
|
1130
|
* <p>Setter for the field <code>initiallySelectedTaxonBase</code>.</p>
|
1131
|
*
|
1132
|
* @param taxonBase a {@link eu.etaxonomy.cdm.model.taxon.TaxonBase} object.
|
1133
|
*/
|
1134
|
public void setInitiallySelectedTaxonBase(TaxonBase taxonBase) {
|
1135
|
this.initiallySelectedTaxonBase = taxonBase;
|
1136
|
}
|
1137
|
|
1138
|
/**
|
1139
|
* <p>Getter for the field <code>initiallySelectedTaxonBase</code>.</p>
|
1140
|
*
|
1141
|
* @return a {@link eu.etaxonomy.cdm.model.taxon.TaxonBase} object.
|
1142
|
*/
|
1143
|
public TaxonBase getInitiallySelectedTaxonBase() {
|
1144
|
return initiallySelectedTaxonBase;
|
1145
|
}
|
1146
|
}
|