Revision 5454a90f
Added by Andreas Kohlbecker over 8 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/DescriptionPortalController.java | ||
---|---|---|
42 | 42 |
import eu.etaxonomy.cdm.api.service.DistributionTree; |
43 | 43 |
import eu.etaxonomy.cdm.api.service.IDescriptionService; |
44 | 44 |
import eu.etaxonomy.cdm.api.service.ITermService; |
45 |
import eu.etaxonomy.cdm.api.service.IVocabularyService; |
|
45 | 46 |
import eu.etaxonomy.cdm.api.service.dto.DistributionInfoDTO; |
46 | 47 |
import eu.etaxonomy.cdm.api.service.dto.DistributionInfoDTO.InfoPart; |
47 | 48 |
import eu.etaxonomy.cdm.api.service.pager.Pager; |
... | ... | |
114 | 115 |
@Autowired |
115 | 116 |
private ITermService termService; |
116 | 117 |
|
118 |
@Autowired |
|
119 |
private IVocabularyService vocabularyService ; |
|
120 |
|
|
121 |
|
|
117 | 122 |
@Autowired |
118 | 123 |
private IEditGeoService geoService; |
119 | 124 |
|
... | ... | |
247 | 252 |
|
248 | 253 |
EnumSet<InfoPart> parts = EnumSet.copyOf(partSet); |
249 | 254 |
|
250 |
Map<PresenceAbsenceTerm, Color> presenceAbsenceTermColors = EditGeoServiceUtilities.buildStatusColorMap(statusColorsString, termService); |
|
255 |
Map<PresenceAbsenceTerm, Color> presenceAbsenceTermColors = EditGeoServiceUtilities.buildStatusColorMap(statusColorsString, termService, vocabularyService);
|
|
251 | 256 |
|
252 | 257 |
DistributionInfoDTO dto = geoService.composeDistributionInfoFor(parts, taxonUuid, subAreaPreference, statusOrderPreference, |
253 | 258 |
hideMarkedAreas, omitLevels, presenceAbsenceTermColors, LocaleContext.getLanguages(), DISTRIBUTION_INFO_INIT_STRATEGY, recipe); |
Also available in: Unified diff
#5479 preliminar solution for user defined presenceAbsence terms vocabularies