1
|
package eu.etaxonomy.cdm.api.service.config;
|
2
|
|
3
|
/**
|
4
|
* Copyright (C) 2017 EDIT
|
5
|
* European Distributed Institute of Taxonomy
|
6
|
* http://www.e-taxonomy.eu
|
7
|
*
|
8
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
9
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
10
|
*/
|
11
|
|
12
|
|
13
|
import java.util.UUID;
|
14
|
|
15
|
import eu.etaxonomy.cdm.common.monitor.IRemotingProgressMonitor;
|
16
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
17
|
|
18
|
/**
|
19
|
* Configurator for the setSecundumForSubtree operation.
|
20
|
*
|
21
|
* @author a.mueller
|
22
|
* @date 06.01.2017
|
23
|
*
|
24
|
*/
|
25
|
public class SecundumForSubtreeConfigurator extends ForSubtreeConfiguratorBase{
|
26
|
|
27
|
private Reference newSecundum;
|
28
|
private boolean overwriteExistingAccepted = true;
|
29
|
private boolean overwriteExistingSynonyms = true;
|
30
|
private boolean emptySecundumDetail = true;
|
31
|
|
32
|
|
33
|
|
34
|
/**
|
35
|
* @return the emptySecundumDetail
|
36
|
*/
|
37
|
public boolean isEmptySecundumDetail() {
|
38
|
return emptySecundumDetail;
|
39
|
}
|
40
|
|
41
|
|
42
|
|
43
|
public SecundumForSubtreeConfigurator(UUID subtreeUuid, Reference newSecundum, IRemotingProgressMonitor monitor) {
|
44
|
super(subtreeUuid, monitor);
|
45
|
this.newSecundum = newSecundum;
|
46
|
|
47
|
}
|
48
|
|
49
|
|
50
|
public SecundumForSubtreeConfigurator(UUID subtreeUuid) {
|
51
|
super(subtreeUuid);
|
52
|
}
|
53
|
|
54
|
public Reference getNewSecundum() {
|
55
|
return newSecundum;
|
56
|
}
|
57
|
|
58
|
|
59
|
public void setNewSecundum(Reference newSecundum) {
|
60
|
this.newSecundum = newSecundum;
|
61
|
}
|
62
|
|
63
|
|
64
|
|
65
|
public void setEmptySecundumDetail(boolean emptySecundumDetail) {
|
66
|
this.emptySecundumDetail = emptySecundumDetail;
|
67
|
}
|
68
|
|
69
|
|
70
|
public boolean isOverwriteExistingAccepted() {
|
71
|
return overwriteExistingAccepted;
|
72
|
}
|
73
|
|
74
|
|
75
|
public void setOverwriteExistingAccepted(boolean overwriteExistingAccepted) {
|
76
|
this.overwriteExistingAccepted = overwriteExistingAccepted;
|
77
|
}
|
78
|
|
79
|
|
80
|
public boolean isOverwriteExistingSynonyms() {
|
81
|
return overwriteExistingSynonyms;
|
82
|
}
|
83
|
|
84
|
|
85
|
public void setOverwriteExistingSynonyms(boolean overwriteExistingSynonyms) {
|
86
|
this.overwriteExistingSynonyms = overwriteExistingSynonyms;
|
87
|
}
|
88
|
|
89
|
}
|