Project

General

Profile

Revision 34d7fab8

ID34d7fab882ac5b63d751d165b7d52a77329f92e8
Parent e93e2265
Child 6b91c396

Added by Patrick Plitzner over 2 years ago

Add source of type aggregation to description

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/DescriptionServiceImpl.java
37 37
import eu.etaxonomy.cdm.model.common.AnnotationType;
38 38
import eu.etaxonomy.cdm.model.common.CdmBase;
39 39
import eu.etaxonomy.cdm.model.common.DefinedTerm;
40
import eu.etaxonomy.cdm.model.common.IdentifiableSource;
40 41
import eu.etaxonomy.cdm.model.common.Language;
41 42
import eu.etaxonomy.cdm.model.common.Marker;
42 43
import eu.etaxonomy.cdm.model.common.MarkerType;
44
import eu.etaxonomy.cdm.model.common.OriginalSourceType;
43 45
import eu.etaxonomy.cdm.model.common.TermVocabulary;
44 46
import eu.etaxonomy.cdm.model.description.CategoricalData;
45 47
import eu.etaxonomy.cdm.model.description.Character;
......
926 928
        TaxonDescription description = TaxonDescription.NewInstance(taxon);
927 929
        description.setTitleCache("[Aggregation] "+descriptionTitle, true);
928 930
        description.addMarker(Marker.NewInstance(MarkerType.COMPUTED(), true));
931
        IdentifiableSource source = IdentifiableSource.NewInstance(OriginalSourceType.Aggregation);
932
        description.addSource(source);
929 933

  
930 934
        featureToElementMap.forEach((feature, elements)->{
931 935
            //aggregate categorical data

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)