Revision 8cbcd5c2
Added by Andreas Kohlbecker over 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/DerivateDTO.java | ||
---|---|---|
305 | 305 |
|
306 | 306 |
/** |
307 | 307 |
* @return the collection |
308 |
* |
|
309 |
* @deprecated TODO remove as it only duplicates the information contained in the collectionDTO |
|
308 | 310 |
*/ |
309 |
public String getCollection() { |
|
311 |
@Deprecated |
|
312 |
public String getCollectionCode() { |
|
310 | 313 |
if (collection != null){ |
311 | 314 |
return collection.getCode(); |
312 | 315 |
} else { |
313 | 316 |
return null; |
314 | 317 |
} |
315 | 318 |
} |
316 |
/** |
|
317 |
* @param collection the collection to set |
|
318 |
*/ |
|
319 |
public void setCollection(String herbarium) { |
|
320 |
if (collection == null){ |
|
321 |
collection = new CollectionDTO(herbarium, null, null, null); |
|
322 |
}else{ |
|
323 |
this.collection.setCode(herbarium); |
|
324 |
} |
|
325 |
} |
|
319 |
|
|
326 | 320 |
/** |
327 | 321 |
* @return the collection |
328 | 322 |
*/ |
329 |
public CollectionDTO getCollectionDTO() {
|
|
323 |
public CollectionDTO getCollection() { |
|
330 | 324 |
return collection; |
331 | 325 |
} |
332 | 326 |
/** |
Also available in: Unified diff
ref #9249 ref #3978 harmonization of FieldUnit and Derivate DTOs: