Revision cedc4ff1
Added by Katja Luther about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractPostTaxonOperation.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
import org.eclipse.core.commands.operations.IUndoContext; |
15 | 15 |
|
16 |
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode;
|
|
16 |
import eu.etaxonomy.cdm.api.service.ITaxonService;
|
|
17 | 17 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
18 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
|
|
18 |
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
|
|
19 | 19 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled; |
20 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
20 | 21 |
|
21 | 22 |
/** |
22 | 23 |
* <p>Abstract AbstractPostOperation class.</p> |
... | ... | |
31 | 32 |
/** |
32 | 33 |
* A reference to the taxons TaxonNode |
33 | 34 |
*/ |
34 |
protected ITaxonTreeNode taxonNode;
|
|
35 |
protected TaxonNodeDto taxonNode;
|
|
35 | 36 |
|
36 | 37 |
protected UUID parentNodeUuid; |
37 | 38 |
|
... | ... | |
46 | 47 |
super(label, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled); |
47 | 48 |
} |
48 | 49 |
|
49 |
public AbstractPostTaxonOperation(String label, IUndoContext undoContext, TaxonNode taxonNode, |
|
50 |
public AbstractPostTaxonOperation(String label, IUndoContext undoContext, TaxonNodeDto taxonNode,
|
|
50 | 51 |
IPostOperationEnabled postOperationEnabled) { |
51 | 52 |
this(label, undoContext, taxonNode, postOperationEnabled, null); |
52 | 53 |
} |
53 | 54 |
|
54 |
public AbstractPostTaxonOperation(String label, IUndoContext undoContext, TaxonNode taxonNode, |
|
55 |
public AbstractPostTaxonOperation(String label, IUndoContext undoContext, TaxonNodeDto taxonNode,
|
|
55 | 56 |
IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) { |
56 |
this(label, undoContext, taxonNode.getTaxon(), postOperationEnabled, cdmEntitySessionEnabled);
|
|
57 |
this(label, undoContext, (Taxon) CdmStore.getService(ITaxonService.class).find(taxonNode.getTaxonUuid()), postOperationEnabled, cdmEntitySessionEnabled);
|
|
57 | 58 |
this.taxonNode = taxonNode; |
58 | 59 |
} |
59 | 60 |
|
... | ... | |
88 | 89 |
super(label, undoContext, null, postOperationEnabled, cdmEntitySessionEnabled); |
89 | 90 |
} |
90 | 91 |
|
91 |
public AbstractPostTaxonOperation(String label, IUndoContext undoContext, Taxon taxon) {
|
|
92 |
this(label, undoContext, taxon, null); |
|
92 |
public AbstractPostTaxonOperation(String label, IUndoContext undoContext, UUID taxonUuid) {
|
|
93 |
this(label, undoContext, taxonUuid, null);
|
|
93 | 94 |
} |
94 | 95 |
} |
Also available in: Unified diff
ref #2380: implement usage of Dto for taxon navigator