3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.service
.config
;
12 import org
.apache
.log4j
.Logger
;
14 import eu
.etaxonomy
.cdm
.api
.service
.ITaxonNodeService
;
17 * This class is used to configure taxon node deletion.
19 * @see ITaxonNodeService#delete(eu.etaxonomy.cdm.model.taxon.TaxonNode)
25 public class TaxonNodeDeletionConfigurator
extends DeleteConfiguratorBase
{
26 @SuppressWarnings("unused")
27 private static final Logger logger
= Logger
.getLogger(TaxonNodeDeletionConfigurator
.class);
34 public enum ChildHandling
{
40 private ChildHandling childHandling
= ChildHandling
.DELETE
;
43 public void setChildHandling(ChildHandling childHandling
) {
44 this.childHandling
= childHandling
;
48 public ChildHandling
getChildHandling() {
52 public boolean deleteTaxon
= true;
55 public boolean isDeleteTaxon() {
60 public void setDeleteTaxon(boolean deleteTaxon
) {
61 this.deleteTaxon
= deleteTaxon
;