new nodeDeletionConfiguator to fit for taxonnode and feature node deletion
authorKatja Luther <k.luther@bgbm.org>
Tue, 3 Nov 2015 10:40:00 +0000 (11:40 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 5 Nov 2015 11:09:57 +0000 (12:09 +0100)
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/config/NodeDeletionConfigurator.java [new file with mode: 0644]

diff --git a/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/config/NodeDeletionConfigurator.java b/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/config/NodeDeletionConfigurator.java
new file mode 100644 (file)
index 0000000..c54c829
--- /dev/null
@@ -0,0 +1,50 @@
+// $Id$
+/**
+* Copyright (C) 2015 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
+package eu.etaxonomy.cdm.api.service.config;
+
+/**
+ * @author k.luther
+ * @date 03.11.2015
+ *
+ */
+public class NodeDeletionConfigurator extends DeleteConfiguratorBase {
+
+        public enum ChildHandling{
+            DELETE,
+            MOVE_TO_PARENT
+        }
+
+
+        private ChildHandling childHandling = ChildHandling.DELETE;
+
+
+        public void setChildHandling(ChildHandling childHandling) {
+            this.childHandling = childHandling;
+        }
+
+
+        public ChildHandling getChildHandling() {
+            return childHandling;
+        }
+
+        public boolean deleteElement = true;
+
+
+        public boolean isDeleteElement() {
+            return deleteElement;
+        }
+
+
+        public void setDeleteElement(boolean deleteElement) {
+            this.deleteElement = deleteElement;
+        }
+
+
+}