Revision 70946cb4
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/TermDtoContentProvider.java | ||
---|---|---|
88 | 88 |
} |
89 | 89 |
|
90 | 90 |
public Collection<? extends TermDto> getChildTerms(TermVocabularyDto voc) { |
91 |
Collection<TermDto> children = vocabularyToChildTermMap.get(voc);
|
|
91 |
Collection<TermDto> children = getVocabularyToChildTermMap().get(voc);
|
|
92 | 92 |
if(children==null){ |
93 | 93 |
children = new ArrayList<>(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy(voc)); |
94 |
vocabularyToChildTermMap.put(voc, children);
|
|
94 |
getVocabularyToChildTermMap().put(voc, children);
|
|
95 | 95 |
} |
96 | 96 |
return children; |
97 | 97 |
} |
98 | 98 |
|
99 | 99 |
public void removeVocabularyFromCache(TermVocabularyDto voc){ |
100 |
vocabularyToChildTermMap.remove(voc); |
|
100 |
getVocabularyToChildTermMap().remove(voc); |
|
101 |
} |
|
102 |
|
|
103 |
public Map<TermVocabularyDto, Collection<TermDto>> getVocabularyToChildTermMap() { |
|
104 |
return vocabularyToChildTermMap; |
|
105 |
} |
|
106 |
|
|
107 |
public void setVocabularyToChildTermMap(Map<TermVocabularyDto, Collection<TermDto>> vocabularyToChildTermMap) { |
|
108 |
this.vocabularyToChildTermMap = vocabularyToChildTermMap; |
|
101 | 109 |
} |
102 | 110 |
|
103 | 111 |
} |
Also available in: Unified diff
ref #8677: layout and labeling in aggregation config wizard