Revision a9f5e493
Added by Patrick Plitzner almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/TermDtoContentProvider.java | ||
---|---|---|
36 | 36 |
public Object[] getChildren(Object parentElement) { |
37 | 37 |
Collection<TermDto> children = new HashSet<>(); |
38 | 38 |
if(parentElement instanceof TermVocabularyDto){ |
39 |
children.addAll(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy((TermVocabularyDto)parentElement)); |
|
39 |
children.addAll(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy(((TermVocabularyDto)parentElement).getUuid())); |
|
40 |
// FIXME this is only temporarily done on the taxeditor side for the hotfix |
|
41 |
// the cdmlib service method already sets the vocabulary DTO but cdmlib is not released with this hotfix |
|
42 |
children.forEach(child->child.setVocabularyDto((TermVocabularyDto) parentElement)); |
|
40 | 43 |
} else if(parentElement instanceof TermDto){ |
41 | 44 |
if(((TermDto) parentElement).getIncludes()!=null){ |
42 | 45 |
children.addAll(((TermDto) parentElement).getIncludes()); |
Also available in: Unified diff
ref #8263 Set term vocabulary DTO when fetching terms