Project

General

Profile

« Previous | Next » 

Revision 647d3230

Added by Patrick Plitzner almost 5 years ago

ref #7957 Add (web) service for filtering descriptions by type

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/description/IDescriptionDao.java
17 17
import eu.etaxonomy.cdm.model.description.CommonTaxonName;
18 18
import eu.etaxonomy.cdm.model.description.DescriptionBase;
19 19
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
20
import eu.etaxonomy.cdm.model.description.DescriptionType;
20 21
import eu.etaxonomy.cdm.model.description.Distribution;
21 22
import eu.etaxonomy.cdm.model.description.Feature;
22 23
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm;
......
68 69
     * @param scopes Restrict the results to those descriptions which are scoped by one of the Scope instances passed (can be null or empty)
69 70
     * @param geographicalScope Restrict the results to those descriptions which have a geographical scope that overlaps with the NamedArea instances passed (can be null or empty)
70 71
     * @param markerType Restrict the results to those descriptions which are marked as true by one of the given marker types (can be null or empty)
72
     * @param descriptionTypes Restrict the results to those descriptions of the given types (can be null or empty)
71 73
     * @return a count of TaxonDescription instances
72 74
     */
73
    public long countTaxonDescriptions(Taxon taxon, Set<DefinedTerm> scopes, Set<NamedArea> geographicalScope, Set<MarkerType> markerType);
75
    public long countTaxonDescriptions(Taxon taxon, Set<DefinedTerm> scopes, Set<NamedArea> geographicalScope, Set<MarkerType> markerType, Set<DescriptionType> descriptionTypes);
74 76

  
75 77
    /**
76 78
     * Returns description elements of type <TYPE>, belonging to a given description, optionally filtered by one or more features
......
155 157
     * @param scopes Restrict the results to those descriptions which are scoped by one of the Scope instances passed (can be null or empty)
156 158
     * @param geographicalScope Restrict the results to those descriptions which have a geographical scope that overlaps with the NamedArea instances passed (can be null or empty)
157 159
     * @param markerTypes Restrict the results to those descriptions which are marked as true by one of the given marker types (can be null or empty)
160
     * @param descriptionTypes Restrict the results to those descriptions of the given types (can be null or empty)
158 161
     * @param pageSize The maximum number of descriptions returned (can be null for all descriptions)
159 162
     * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
160 163
     * @param propertyPaths Properties to initialize in the returned entities, following the syntax described in {@link IBeanInitializer#initialize(Object, List)}
161 164
     * @return a List of TaxonDescription instances
162 165
     */
163
    List<TaxonDescription> listTaxonDescriptions(Taxon taxon, Set<DefinedTerm> scopes, Set<NamedArea> geographicalScope, Set<MarkerType> markerTypes, Integer pageSize, Integer pageNumber, List<String> propertyPaths);
166
    List<TaxonDescription> listTaxonDescriptions(Taxon taxon, Set<DefinedTerm> scopes, Set<NamedArea> geographicalScope, Set<MarkerType> markerTypes, Set<DescriptionType> descriptionTypes, Integer pageSize, Integer pageNumber, List<String> propertyPaths);
164 167

  
165 168
    /**
166 169
     * Returns a List of Media instances, optionally filtered by parameters passed to this method.

Also available in: Unified diff