Project

General

Profile

« Previous | Next » 

Revision 03c4eee9

Added by Andreas Kohlbecker about 9 years ago

performance: avoiding second distribution filtering when creating the DistributionServiceRequestParameterString - #4911

View differences:

cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/geo/EditGeoService.java
139 139
            Map<PresenceAbsenceTerm, Color> presenceAbsenceTermColors,
140 140
            List<Language> langs) {
141 141

  
142
//        if (backLayer == null) {
143
//            backLayer = DEFAULT_BACK_LAYER;
144
//        }
145
        String uriParams = EditGeoServiceUtilities.getDistributionServiceRequestParameterString(distributions,
146
                subAreaPreference,
147
                statusOrderPreference,
142
        Collection<Distribution> filteredDistributions = DescriptionUtility.filterDistributions(distributions, subAreaPreference, statusOrderPreference, hideMarkedAreas);
143

  
144

  
145
        String uriParams = EditGeoServiceUtilities.getDistributionServiceRequestParameterString(filteredDistributions,
148 146
                hideMarkedAreas,
149
                areaMapping, presenceAbsenceTermColors, null, langs);
147
                areaMapping,
148
                presenceAbsenceTermColors,
149
                null, langs);
150 150
        return uriParams;
151 151
    }
152 152

  
......
200 200

  
201 201
    }
202 202

  
203
    public String getCondensedDistributionString(List<TaxonDescription> taxonDescriptions,
204
            boolean subAreaPreference,
205
            boolean statusOrderPreference,
206
            Set<MarkerType> hideMarkedAreas,
207
            CondensedDistributionStringRecipe recipe,
208
            List<Language> langs) {
209
        return null;
210
    }
211

  
203 212
    /**
204 213
     * @param derivedUnit
205 214
     * @param derivedUnitPoints
......
317 326

  
318 327
        if (parts.contains(InfoPart.mapUriParams)) {
319 328
            dto.setMapUriParams(EditGeoServiceUtilities.getDistributionServiceRequestParameterString(filteredDistributions,
320
                    subAreaPreference,
321
                    statusOrderPreference,
322 329
                    hideMarkedAreas,
323
                    areaMapping, presenceAbsenceTermColors, null, languages));
330
                    areaMapping,
331
                    presenceAbsenceTermColors,
332
                    null, languages));
324 333
        }
325 334

  
326 335
        if(parts.contains(InfoPart.condensedStatusString)) {

Also available in: Unified diff