Revision 6c5e41a1
Added by Andreas Müller almost 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/SpecimenOrObservationBaseDTO.java | ||
---|---|---|
104 | 104 |
} |
105 | 105 |
} |
106 | 106 |
|
107 |
public String getCollectorsNumber() { |
|
108 |
return collectorsNumber; |
|
109 |
} |
|
110 |
|
|
111 |
public void setCollectorsNumber(String collectorsNumber) { |
|
112 |
this.collectorsNumber = collectorsNumber; |
|
113 |
} |
|
114 |
|
|
115 | 107 |
public Set<SpecimenTypeDesignationDTO> getSpecimenTypeDesignations() { |
116 | 108 |
return specimenTypeDesignations; |
117 | 109 |
} |
... | ... | |
123 | 115 |
this.specimenTypeDesignations.add(new SpecimenTypeDesignationDTO(typeDes)); |
124 | 116 |
} |
125 | 117 |
} |
126 |
|
|
127 | 118 |
} |
128 | 119 |
|
129 |
|
|
130 | 120 |
public Set<IdentifiableSource> getSources() { |
131 | 121 |
return sources; |
132 | 122 |
} |
... | ... | |
135 | 125 |
this.sources = sources; |
136 | 126 |
} |
137 | 127 |
|
138 |
|
|
139 | 128 |
/** |
140 | 129 |
* @return the derivateDataDTO |
141 | 130 |
*/ |
... | ... | |
164 | 153 |
|
165 | 154 |
public void addCharacterData(String character, String state){ |
166 | 155 |
if(characterData==null){ |
167 |
characterData = new TreeSet<AbstractMap.SimpleEntry<String,String>>(new PairComparator());
|
|
156 |
characterData = new TreeSet<>(new PairComparator()); |
|
168 | 157 |
} |
169 | 158 |
characterData.add(new AbstractMap.SimpleEntry<>(character, state)); |
170 | 159 |
} |
... | ... | |
202 | 191 |
this.hasCharacterData = hasCharacterData; |
203 | 192 |
} |
204 | 193 |
|
205 |
/** |
|
206 |
* @return the hasDna |
|
207 |
*/ |
|
208 | 194 |
public boolean isHasDna() { |
209 | 195 |
return hasDna; |
210 | 196 |
} |
211 |
|
|
212 |
/** |
|
213 |
* @param hasDna the hasDna to set |
|
214 |
*/ |
|
215 | 197 |
public void setHasDna(boolean hasDna) { |
216 | 198 |
this.hasDna = hasDna; |
217 | 199 |
} |
218 | 200 |
|
219 |
/** |
|
220 |
* @return the hasDetailImage |
|
221 |
*/ |
|
222 | 201 |
public boolean isHasDetailImage() { |
223 | 202 |
return hasDetailImage; |
224 | 203 |
} |
225 |
|
|
226 |
/** |
|
227 |
* @param hasDetailImage the hasDetailImage to set |
|
228 |
*/ |
|
229 | 204 |
public void setHasDetailImage(boolean hasDetailImage) { |
230 | 205 |
this.hasDetailImage = hasDetailImage; |
231 | 206 |
} |
232 | 207 |
|
233 |
/** |
|
234 |
* @return the hasSpecimenScan |
|
235 |
*/ |
|
236 | 208 |
public boolean isHasSpecimenScan() { |
237 | 209 |
return hasSpecimenScan; |
238 | 210 |
} |
239 |
|
|
240 |
/** |
|
241 |
* @param hasSpecimenScan the hasSpecimenScan to set |
|
242 |
*/ |
|
243 | 211 |
public void setHasSpecimenScan(boolean hasSpecimenScan) { |
244 | 212 |
this.hasSpecimenScan = hasSpecimenScan; |
245 | 213 |
} |
... | ... | |
260 | 228 |
this.summaryLabel = summaryLabel; |
261 | 229 |
} |
262 | 230 |
|
263 |
|
|
264 | 231 |
public SpecimenOrObservationType getRecordBase() { |
265 | 232 |
return recordBase; |
266 | 233 |
} |
... | ... | |
323 | 290 |
return dtos; |
324 | 291 |
} |
325 | 292 |
|
326 |
|
|
327 |
|
|
328 | 293 |
public EventDTO<DerivationEvent> getDerivationEvent() { |
329 | 294 |
return derivationEvent; |
330 | 295 |
} |
331 |
|
|
332 | 296 |
public void setDerivationEvent(EventDTO<DerivationEvent> derivationEvent) { |
333 | 297 |
this.derivationEvent = derivationEvent; |
334 | 298 |
} |
335 | 299 |
|
336 |
|
|
337 |
/** |
|
338 |
* @return the listOfMedia |
|
339 |
*/ |
|
340 | 300 |
public List<MediaDTO> getListOfMedia() { |
341 | 301 |
return listOfMedia; |
342 | 302 |
} |
343 |
|
|
344 |
/** |
|
345 |
* @param listOfMedia the listOfMedia to set |
|
346 |
*/ |
|
347 | 303 |
public void setListOfMedia(List<MediaDTO> listOfMedia) { |
348 | 304 |
this.listOfMedia = listOfMedia; |
349 | 305 |
} |
350 | 306 |
|
351 |
|
|
352 | 307 |
protected Set<Media> collectMedia(SpecimenOrObservationBase<?> specimenOrObservation){ |
353 | 308 |
Set<Media> collectedMedia = new HashSet<>(); |
354 | 309 |
Set<SpecimenDescription> descriptions = specimenOrObservation.getSpecimenDescriptionImageGallery(); |
... | ... | |
374 | 329 |
} |
375 | 330 |
} |
376 | 331 |
|
377 |
|
|
378 |
|
|
379 | 332 |
/** |
380 | 333 |
* @param sob |
381 | 334 |
* The Unit to assemble the derivatives information for |
... | ... | |
426 | 379 |
public void setKindOfUnit(TermBase kindOfUnit) { |
427 | 380 |
this.kindOfUnit = HibernateProxyHelper.deproxy(kindOfUnit); |
428 | 381 |
} |
382 |
|
|
429 | 383 |
public DefinedTerm getSex() { |
430 | 384 |
return sex; |
431 | 385 |
} |
432 | 386 |
public void setSex(DefinedTerm sex) { |
433 | 387 |
this.sex = sex; |
434 | 388 |
} |
389 |
|
|
435 | 390 |
public DefinedTerm getLifeStage() { |
436 | 391 |
return lifeStage; |
437 | 392 |
} |
... | ... | |
439 | 394 |
this.lifeStage = lifeStage; |
440 | 395 |
} |
441 | 396 |
|
442 |
|
|
443 | 397 |
public int getId() { |
444 | 398 |
return id; |
445 | 399 |
} |
... | ... | |
447 | 401 |
public String getIndividualCount() { |
448 | 402 |
return individualCount; |
449 | 403 |
} |
450 |
|
|
451 | 404 |
public void setIndividualCount(String individualCount) { |
452 | 405 |
this.individualCount = individualCount; |
453 | 406 |
} |
454 | 407 |
|
455 |
|
|
456 | 408 |
@Deprecated |
457 | 409 |
public List<TypedEntityReference<TaxonName>> getDeterminedNames() { |
458 | 410 |
return determinedNames; |
... | ... | |
485 | 437 |
public void setDeterminations(List<DeterminationEventDTO> determinations) { |
486 | 438 |
this.determinations = determinations; |
487 | 439 |
} |
488 |
|
|
489 |
|
|
490 |
} |
|
440 |
} |
Also available in: Unified diff
cleanup