Project

General

Profile

Revision 412b2eee

ID412b2eee476ad8dc71cfbc99f75b9e9492daf460
Parent b9b25534
Child a4ca6fce

Added by Andreas Müller about 1 year ago

ref #8472 remove final links to old MarkerType.COMPUTED handling

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/description/DescriptionAggregationBase.java
41 41
import eu.etaxonomy.cdm.model.common.CdmBase;
42 42
import eu.etaxonomy.cdm.model.description.CategoricalData;
43 43
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
44
import eu.etaxonomy.cdm.model.description.DescriptionType;
45 44
import eu.etaxonomy.cdm.model.description.Distribution;
46 45
import eu.etaxonomy.cdm.model.description.TaxonDescription;
47 46
import eu.etaxonomy.cdm.model.media.Media;
......
255 254

  
256 255
    /**
257 256
     * Either finds an existing taxon description of the given taxon or creates a new one.
258
     * If the doClear is set all existing description elements will be cleared.
259
     *
260
     * @param taxon
261
     * @param doClear will remove all existing Distributions if the taxon already
262
     *     has a description of type {@link DescriptionType#AGGREGATED_DISTRIBUTION}
263
     *     (or a MarkerType COMPUTED for historical reasons, will be removed in future)
264
     * @return
265 257
     */
266 258
    private TaxonDescription getAggregatedDescription(Taxon taxon) {
267 259

  
268 260
        // find existing one
269 261
        for (TaxonDescription description : taxon.getDescriptions()) {
270 262
            if (hasDescriptionType(description)){
271
                logger.debug("reusing computed description for " + taxonToString(taxon));
263
                logger.debug("reusing existing aggregated description for " + taxonToString(taxon));
272 264
                setDescriptionTitle(description, taxon);  //maybe we want to redefine the title
273 265
                return description;
274 266
            }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)