Revision ccfd526c
Added by Andreas Kohlbecker over 10 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/DescriptionServiceImpl.java | ||
---|---|---|
64 | 64 |
* @created 24.06.2008 |
65 | 65 |
* @version 1.0 |
66 | 66 |
*/ |
67 |
/** |
|
68 |
* @author a.kohlbecker |
|
69 |
* @date Dec 5, 2013 |
|
70 |
* |
|
71 |
*/ |
|
67 | 72 |
@Service |
68 | 73 |
@Transactional(readOnly = true) |
69 | 74 |
public class DescriptionServiceImpl extends IdentifiableServiceBase<DescriptionBase,IDescriptionDao> implements IDescriptionService { |
... | ... | |
279 | 284 |
} |
280 | 285 |
|
281 | 286 |
|
282 |
|
|
283 |
|
|
287 |
/* (non-Javadoc) |
|
288 |
* @see eu.etaxonomy.cdm.api.service.IDescriptionService#getOrderedDistributions(java.util.Set, boolean, boolean, java.util.Set, java.util.List) |
|
289 |
*/ |
|
284 | 290 |
@Override |
285 | 291 |
public DistributionTree getOrderedDistributions( |
286 | 292 |
Set<TaxonDescription> taxonDescriptions, |
293 |
boolean subAreaPreference, |
|
294 |
boolean statusOrderPreference, |
|
287 | 295 |
Set<NamedAreaLevel> omitLevels, |
288 | 296 |
List<String> propertyPaths){ |
289 | 297 |
|
... | ... | |
332 | 340 |
if (logger.isDebugEnabled()){logger.debug("filter tree for " + distList.size() + " distributions ...");} |
333 | 341 |
|
334 | 342 |
// filter distributions |
335 |
Collection<Distribution> filteredDistributions = DescriptionUtility.filterDistributions(distList); |
|
343 |
Collection<Distribution> filteredDistributions = DescriptionUtility.filterDistributions(distList, false, false);
|
|
336 | 344 |
distList.clear(); |
337 | 345 |
distList.addAll(filteredDistributions); |
338 | 346 |
|
Also available in: Unified diff
implementing rule 2 and 3 for #3904 (EuroMed: Implement filtering rules for Distributions) - all existing test running successfully