Revision a2effde9
Added by Andreas Müller about 7 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/TaxonPortalController.java | ||
---|---|---|
34 | 34 |
import org.springframework.web.servlet.ModelAndView; |
35 | 35 |
|
36 | 36 |
import eu.etaxonomy.cdm.api.service.IClassificationService; |
37 |
import eu.etaxonomy.cdm.api.service.IDescriptionService; |
|
38 | 37 |
import eu.etaxonomy.cdm.api.service.INameService; |
39 | 38 |
import eu.etaxonomy.cdm.api.service.ITaxonService; |
40 | 39 |
import eu.etaxonomy.cdm.api.service.ITermService; |
... | ... | |
96 | 95 |
@Autowired |
97 | 96 |
private INameService nameService; |
98 | 97 |
|
99 |
@Autowired |
|
100 |
private IDescriptionService descriptionService; |
|
101 |
|
|
102 | 98 |
@Autowired |
103 | 99 |
private IClassificationService classificationService; |
104 | 100 |
|
... | ... | |
606 | 602 |
Map<Media, MediaRepresentation> mediaRepresentationMap = MediaUtils.findPreferredMedia( |
607 | 603 |
taxonGalleryMedia, type, mimeTypes, null, widthOrDuration, height, size); |
608 | 604 |
|
609 |
List<Media> filteredMedia = new ArrayList<Media>(mediaRepresentationMap.size());
|
|
605 |
List<Media> filteredMedia = new ArrayList<>(mediaRepresentationMap.size()); |
|
610 | 606 |
for (Media media : mediaRepresentationMap.keySet()) { |
611 | 607 |
media.getRepresentations().clear(); |
612 | 608 |
media.addRepresentation(mediaRepresentationMap.get(media)); |
Also available in: Unified diff
cleanup