Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 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
package eu.etaxonomy.cdm.api.service.config;
10

    
11
/**
12
 * @author k.luther
13
 * @since 03.11.2015
14
 *
15
 */
16
public class NodeDeletionConfigurator extends DeleteConfiguratorBase {
17

    
18
        public enum ChildHandling{
19
            DELETE,
20
            MOVE_TO_PARENT
21
        }
22

    
23

    
24
        private ChildHandling childHandling = ChildHandling.DELETE;
25

    
26

    
27
        public void setChildHandling(ChildHandling childHandling) {
28
            this.childHandling = childHandling;
29
        }
30

    
31

    
32
        public ChildHandling getChildHandling() {
33
            return childHandling;
34
        }
35

    
36
        public boolean deleteElement = true;
37

    
38

    
39
        public boolean isDeleteElement() {
40
            return deleteElement;
41
        }
42

    
43

    
44
        public void setDeleteElement(boolean deleteElement) {
45
            this.deleteElement = deleteElement;
46
        }
47

    
48

    
49
}
(16-16/30)