Revision ef165fe2
Added by Andreas Müller almost 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/config/NodeDeletionConfigurator.java | ||
---|---|---|
11 | 11 |
/** |
12 | 12 |
* @author k.luther |
13 | 13 |
* @since 03.11.2015 |
14 |
* |
|
15 | 14 |
*/ |
16 | 15 |
public class NodeDeletionConfigurator extends DeleteConfiguratorBase { |
17 | 16 |
|
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 |
} |
|
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 |
} |
Also available in: Unified diff
cleanup