Project

General

Profile

Download (1.06 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2015 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
/**
13
 * @author k.luther
14
 * @date 03.11.2015
15
 *
16
 */
17
public class NodeDeletionConfigurator extends DeleteConfiguratorBase {
18

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

    
24

    
25
        private ChildHandling childHandling = ChildHandling.DELETE;
26

    
27

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

    
32

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

    
37
        public boolean deleteElement = true;
38

    
39

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

    
44

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

    
49

    
50
}
(14-14/21)