Revision ef165fe2
Added by Andreas Müller almost 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/config/TaxonDeletionConfigurator.java | ||
---|---|---|
39 | 39 |
* |
40 | 40 |
* @author a.mueller |
41 | 41 |
* @since 09.11.2011 |
42 |
* |
|
43 | 42 |
*/ |
44 | 43 |
public class TaxonDeletionConfigurator extends TaxonBaseDeletionConfigurator { |
45 | 44 |
|
... | ... | |
57 | 56 |
|
58 | 57 |
//private NameDeletionConfigurator nameDeletionConfig = new NameDeletionConfigurator(); |
59 | 58 |
|
60 |
|
|
61 | 59 |
private TaxonNodeDeletionConfigurator taxonNodeConfig = new TaxonNodeDeletionConfigurator(); |
62 | 60 |
|
63 |
|
|
64 | 61 |
private boolean deleteTaxonNodes = true; |
65 | 62 |
|
66 | 63 |
private boolean deleteTaxonRelationships = true; |
... | ... | |
79 | 76 |
this.deleteInAllClassifications = deleteInAllClassifications; |
80 | 77 |
} |
81 | 78 |
|
82 |
|
|
83 | 79 |
/** |
84 | 80 |
* If <code>true</code> related taxa with {@link TaxonRelationshipType} misappliedName |
85 | 81 |
* will be removed if possible.<BR> |
... | ... | |
95 | 91 |
this.deleteMisappliedNames = deleteMisappliedNames; |
96 | 92 |
} |
97 | 93 |
|
98 |
|
|
99 |
|
|
100 |
|
|
101 | 94 |
/** |
102 | 95 |
* The configurator for node deletion. Only evaluated if {@link #isDeleteNode()} |
103 | 96 |
* is <code>true</code>. |
... | ... | |
110 | 103 |
public TaxonNodeDeletionConfigurator getTaxonNodeConfig() { |
111 | 104 |
return taxonNodeConfig; |
112 | 105 |
} |
113 |
|
|
114 | 106 |
public void setTaxonNodeConfig(TaxonNodeDeletionConfigurator taxonNodeConfig) { |
115 | 107 |
this.taxonNodeConfig = taxonNodeConfig; |
116 | 108 |
} |
117 | 109 |
|
118 |
|
|
119 |
|
|
120 |
|
|
121 | 110 |
/** |
122 | 111 |
* If <code>true</code> synonyms will be removed if possible but only if {@link #isDeleteSynonymRelations()} |
123 | 112 |
* is also <code>true</code>. |
... | ... | |
127 | 116 |
public boolean isDeleteSynonymsIfPossible() { |
128 | 117 |
return deleteSynonymsIfPossible; |
129 | 118 |
} |
130 |
|
|
131 | 119 |
public void setDeleteSynonymsIfPossible(boolean deleteSynonymsIfPossible) { |
132 | 120 |
this.deleteSynonymsIfPossible = deleteSynonymsIfPossible; |
133 | 121 |
} |
134 | 122 |
|
135 |
|
|
136 |
|
|
137 | 123 |
/** |
138 | 124 |
* If <code>true</code> all {@link TaxonNode taxon nodes} this taxon belongs to |
139 | 125 |
* are deleted. If <code>false</code> an exception is thrown if this taxon belongs |
... | ... | |
143 | 129 |
public boolean isDeleteTaxonNodes() { |
144 | 130 |
return deleteTaxonNodes; |
145 | 131 |
} |
146 |
|
|
147 | 132 |
public void setDeleteTaxonNodes(boolean deleteTaxonNodes) { |
148 | 133 |
this.deleteTaxonNodes = deleteTaxonNodes; |
149 | 134 |
} |
... | ... | |
156 | 141 |
public boolean isDeleteTaxonRelationships() { |
157 | 142 |
return deleteTaxonRelationships; |
158 | 143 |
} |
159 |
|
|
160 | 144 |
public void setDeleteTaxonRelationships(boolean deleteTaxonRelationships) { |
161 | 145 |
this.deleteTaxonRelationships = deleteTaxonRelationships; |
162 | 146 |
} |
... | ... | |
168 | 152 |
public boolean isDeleteDescriptions() { |
169 | 153 |
return deleteDescriptions; |
170 | 154 |
} |
171 |
|
|
172 | 155 |
public void setDeleteDescriptions(boolean deleteDescriptions) { |
173 | 156 |
this.deleteDescriptions = deleteDescriptions; |
174 | 157 |
} |
175 | 158 |
|
176 |
|
|
177 | 159 |
/** |
178 | 160 |
* @return the deleteConceptRelationships |
179 | 161 |
*/ |
180 | 162 |
public boolean isDeleteConceptRelationships() { |
181 | 163 |
return deleteConceptRelationships; |
182 | 164 |
} |
183 |
|
|
184 |
|
|
185 | 165 |
/** |
186 | 166 |
* @param deleteConceptRelationships the deleteConceptRelationships to set |
187 | 167 |
*/ |
... | ... | |
189 | 169 |
this.deleteConceptRelationships = deleteConceptRelationships; |
190 | 170 |
} |
191 | 171 |
|
192 |
|
|
193 | 172 |
public UUID getClassificationUuid() { |
194 | 173 |
return classificationUuid; |
195 | 174 |
} |
196 |
|
|
197 |
|
|
198 | 175 |
public void setClassificationUuid(UUID classificationUuid) { |
199 | 176 |
this.classificationUuid = classificationUuid; |
200 | 177 |
} |
201 |
|
|
202 |
|
|
203 |
|
|
204 |
|
|
205 |
} |
|
178 |
} |
Also available in: Unified diff
cleanup