import eu.etaxonomy.cdm.api.service.DeleteResult;
import eu.etaxonomy.cdm.api.service.UpdateResult;
import eu.etaxonomy.cdm.api.service.config.TaxonDeletionConfigurator;
-import eu.etaxonomy.cdm.model.taxon.Classification;
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
import eu.etaxonomy.taxeditor.navigation.l10n.Messages;
import eu.etaxonomy.taxeditor.operation.RemotingCdmUpdateOperation;
if(treeNodes.size() == 1) {
// when single node this is either a taxon or a classification
TaxonNodeDto node = treeNodes.iterator().next();
- if(node.getType() != null && node.getType().equals(Classification.class)) {
- return CdmApplicationState.getCurrentAppConfig().getClassificationService().delete(node.getUuid());
+ if(node.getTaxonUuid() == null) {
+ return CdmApplicationState.getCurrentAppConfig().getClassificationService().delete(node.getClassificationUUID());
}
return CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().deleteTaxonNode((node).getUuid(), config);
// } else if(node.getType().equals( Classification.class)) {