Project

General

Profile

« Previous | Next » 

Revision d96830e8

Added by Andreas Müller about 4 years ago

ref #9005 adapt NewTaxonBasePresenter to new TaxonNodeStatus

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/taxon/NewTaxonBasePresenter.java
33 33
import eu.etaxonomy.cdm.model.taxon.SynonymType;
34 34
import eu.etaxonomy.cdm.model.taxon.Taxon;
35 35
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
36
import eu.etaxonomy.cdm.model.taxon.TaxonNodeStatus;
36 37
import eu.etaxonomy.cdm.persistence.query.MatchMode;
37 38
import eu.etaxonomy.cdm.strategy.parser.NonViralNameParserImpl;
38 39
import eu.etaxonomy.cdm.vaadin.container.CdmSQLContainer;
......
42 43
/**
43 44
 * @author cmathew
44 45
 * @since 2 Apr 2015
45
 *
46 46
 */
47 47
public class NewTaxonBasePresenter implements INewTaxonBaseComponentListener {
48 48

  
......
117 117
        Classification classification = CdmBase.deproxy(classificationService.load(classificationUuid, CLASSIFICATION_INIT_STRATEGY), Classification.class);
118 118
        TaxonNode newTaxonNode = classification.addChildTaxon(newTaxon, null, null);
119 119
        taxonNodeService.saveOrUpdate(newTaxonNode);
120
        newTaxonNode.setUnplaced(true);
120
        newTaxonNode.setStatus(TaxonNodeStatus.UNPLACED);
121 121

  
122 122
        app.commitTransaction(tx);
123 123
        return new IdUuidName(newTaxonNode.getTaxon().getId(), newTaxonNode.getTaxon().getUuid(), newTaxonNode.getTaxon().getTitleCache());

Also available in: Unified diff