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
|
public class NodeDeletionConfigurator extends DeleteConfiguratorBase {
|
16
|
|
17
|
private static final long serialVersionUID = 2171213260336308399L;
|
18
|
|
19
|
public enum ChildHandling{
|
20
|
DELETE,
|
21
|
MOVE_TO_PARENT
|
22
|
}
|
23
|
|
24
|
private ChildHandling childHandling = ChildHandling.DELETE;
|
25
|
protected boolean deleteElement = true;
|
26
|
|
27
|
public ChildHandling getChildHandling() {
|
28
|
return childHandling;
|
29
|
}
|
30
|
public void setChildHandling(ChildHandling childHandling) {
|
31
|
this.childHandling = childHandling;
|
32
|
}
|
33
|
|
34
|
public boolean isDeleteElement() {
|
35
|
return deleteElement;
|
36
|
}
|
37
|
public void setDeleteElement(boolean deleteElement) {
|
38
|
this.deleteElement = deleteElement;
|
39
|
}
|
40
|
}
|