Revision 29e233c6
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixBottomToolbar.java | ||
---|---|---|
36 | 36 |
import eu.etaxonomy.cdm.model.description.Feature; |
37 | 37 |
import eu.etaxonomy.cdm.model.description.QuantitativeData; |
38 | 38 |
import eu.etaxonomy.cdm.model.description.SpecimenDescription; |
39 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
|
39 | 40 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
40 | 41 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
41 | 42 |
import eu.etaxonomy.cdm.persistence.dto.SpecimenNodeWrapper; |
... | ... | |
163 | 164 |
List<UUID> descriptionUuids = new ArrayList<>(); |
164 | 165 |
matrix.getDescriptiveDataSet().getDescriptions().forEach(desc->descriptionUuids.add(desc.getUuid())); |
165 | 166 |
UpdateResult result = CdmStore.getService(IDescriptionService.class).aggregateDescription(taxonUuid, descriptionUuids, matrix.getDescriptiveDataSet().getLabel(), matrix.getDescriptiveDataSet().getUuid()); |
167 |
TaxonDescription taxonDescription = (TaxonDescription) result.getCdmEntity(); |
|
168 |
TaxonRowWrapperDTO taxonRowWrapper = CdmStore.getService(IDescriptiveDataSetService.class).createTaxonRowWrapper(taxonDescription, matrix.getDescriptiveDataSet()); |
|
169 |
matrix.getDescriptions().add(taxonRowWrapper); |
|
166 | 170 |
matrix.addUpdateResult(result); |
167 |
matrix.setDirty(); |
|
168 | 171 |
|
169 | 172 |
aggregateCategorcialHistogram(matrix.getFeatureToHistogramMap()); |
170 | 173 |
aggregateQuantitativeSummary(matrix.getFeatureToQuantDataStatisticsMap()); |
Also available in: Unified diff
ref #7674 Add aggregated description directly to matrix after creation