new nodeDeletionConfiguator to fit for taxonnode and feature node deletion
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / config / TaxonNodeDeletionConfigurator.java
1 // $Id$
2 /**
3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10 package eu.etaxonomy.cdm.api.service.config;
11
12 import org.apache.log4j.Logger;
13
14 import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
15
16 /**
17 * This class is used to configure taxon node deletion.
18 *
19 * @see ITaxonNodeService#delete(eu.etaxonomy.cdm.model.taxon.TaxonNode)
20 *
21 * @author a.mueller
22 * @date 09.11.2011
23 *
24 */
25 public class TaxonNodeDeletionConfigurator extends DeleteConfiguratorBase {
26 @SuppressWarnings("unused")
27 private static final Logger logger = Logger.getLogger(TaxonNodeDeletionConfigurator.class);
28
29 /**
30 *
31 *
32 *
33 */
34 public enum ChildHandling{
35 DELETE,
36 MOVE_TO_PARENT
37 }
38
39
40 private ChildHandling childHandling = ChildHandling.DELETE;
41
42
43 public void setChildHandling(ChildHandling childHandling) {
44 this.childHandling = childHandling;
45 }
46
47
48 public ChildHandling getChildHandling() {
49 return childHandling;
50 }
51
52 public boolean deleteTaxon = true;
53
54
55 public boolean isDeleteTaxon() {
56 return deleteTaxon;
57 }
58
59
60 public void setDeleteTaxon(boolean deleteTaxon) {
61 this.deleteTaxon = deleteTaxon;
62 }
63
64
65
66
67 }