7675b63ffe3f21c64283d77eccb0c9395ed25d39
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / TemporaryTaxon.java
1 /**
2 * Copyright (C) 2009 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 org.apache.log4j.Logger;
13
14 import eu.etaxonomy.cdm.model.taxon.Taxon;
15 import eu.etaxonomy.taxeditor.store.CdmStore;
16
17 /**
18 * @author p.ciardelli
19 * @created 24.02.2009
20 * @version 1.0
21 */
22 public class TemporaryTaxon extends Taxon {
23 private static Logger logger = Logger.getLogger(TemporaryTaxon.class);
24
25 // TemporaryTaxon(Taxon taxon) {
26 // this.t = CdmUtil.getTaxonService().getTaxonByUuid(taxon.getUuid());
27 // }
28
29 public static TemporaryTaxon newInstance(Taxon taxon) {
30 TemporaryTaxon tempTaxon = (TemporaryTaxon)
31 CdmStore.getTaxonService().getTaxonByUuid(taxon.getUuid());
32 return tempTaxon;
33 }
34 }