Revision ec25be77
Added by Cherian Mathew about 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/DeleteSynonymOperation.java | ||
---|---|---|
71 | 71 |
|
72 | 72 |
ICdmApplicationConfiguration controller; |
73 | 73 |
|
74 |
controller = (ICdmApplicationConfiguration) CdmStore.getCurrentApplicationConfiguration();
|
|
74 |
controller = CdmStore.getCurrentApplicationConfiguration(); |
|
75 | 75 |
|
76 | 76 |
ITaxonService service = controller.getTaxonService(); |
77 | 77 |
if (synonym.getId() == 0){ |
78 | 78 |
element.removeSynonym(synonym); |
79 | 79 |
|
80 | 80 |
} else { |
81 |
|
|
82 |
DeleteResult result = service.deleteSynonym(synonym, null); |
|
81 |
|
|
82 |
DeleteResult result = service.deleteSynonym(synonym.getUuid(), element.getUuid(), null);
|
|
83 | 83 |
if (result.isError()){ |
84 | 84 |
MessageDialog.openError(null, "Delete failed", result.getExceptions().get(0).getMessage()); |
85 | 85 |
} |
Also available in: Unified diff
CdmTransientEntityCacher : overriding cache field only in the case of initialised cdm entity
CdmEntitySession, ICdmEntitySession, MockCdmEntitySession : added update + delete methods
DeleteSynonymOperation, MoveFactualDataHandler : changed service call to uuid one
ChangeAcceptedTaxonToSynonymOperation, DeleteOperation, MoveTaxonOperation : calling newly added session update , insert delete methods