Revision 8c761221
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java | ||
---|---|---|
166 | 166 |
public void clearTermMapForTermType(TermType termType){ |
167 | 167 |
cachedTermMap.remove(termType); |
168 | 168 |
} |
169 |
|
|
170 |
/** |
|
171 |
* Generic method to get term preferences for a term vocabulary |
|
172 |
* |
|
173 |
* @param initialTerms a {@link java.util.List} object. |
|
174 |
* @return a {@link java.util.List} object. |
|
175 |
*/ |
|
176 |
public <T extends DefinedTermBase> List<T> getTerms(List<UUID> uuidList, Class clazz){ |
|
177 |
|
|
178 |
List<T> filteredTerms = new ArrayList<T>(); |
|
179 |
List<T> terms = TermStore.getTerms(clazz); |
|
180 |
for (T term : terms){ |
|
181 |
if(uuidList.contains(term.getUuid())){ |
|
182 |
filteredTerms.add(term); |
|
183 |
} |
|
184 |
} |
|
185 |
|
|
186 |
return filteredTerms; |
|
187 |
} |
|
169 | 188 |
} |
Also available in: Unified diff
save status for distribution editor locally the same as in db