@Component public class TermLoader extends java.lang.Object implements ITermLoader
Constructor and Description |
---|
TermLoader() |
Modifier and Type | Method and Description |
---|---|
<T extends DefinedTermBase> |
loadSingleTerms(VocabularyEnum vocType,
TermVocabulary<T> voc,
java.util.Set<java.util.UUID> missingTerms)
Loads all terms for the given vocabulary and with the given term uuids by using the given term loader.
|
<T extends DefinedTermBase> |
loadTerms(VocabularyEnum vocType,
java.util.Map<java.util.UUID,DefinedTermBase> terms)
Loads the terms for the DefinedTermBase subclass defined by vocType.
|
java.util.UUID |
loadUuids(VocabularyEnum vocType,
java.util.Map<java.util.UUID,java.util.Set<java.util.UUID>> uuidMap)
Loads the
UUID s of all vocabularies and all related terms into the given uuidMap. |
void |
unloadAllTerms()
Unload all static terms.
|
public void unloadAllTerms()
ITermLoader
unloadAllTerms
in interface ITermLoader
public java.util.UUID loadUuids(VocabularyEnum vocType, java.util.Map<java.util.UUID,java.util.Set<java.util.UUID>> uuidMap)
ITermLoader
UUID
s of all vocabularies and all related terms into the given uuidMap.
Where the key of the map is the vocabulary uuid and the values are the related term uuids.loadUuids
in interface ITermLoader
vocType
- vocabulary typeuuidMap
- the resulting uuid map with the key as vocabulary uuid and the value as set of term uuids
belonging to the given vocabularypublic <T extends DefinedTermBase> TermVocabulary<T> loadTerms(VocabularyEnum vocType, java.util.Map<java.util.UUID,DefinedTermBase> terms)
ITermLoader
loadTerms
in interface ITermLoader
public <T extends DefinedTermBase> java.util.Set<T> loadSingleTerms(VocabularyEnum vocType, TermVocabulary<T> voc, java.util.Set<java.util.UUID> missingTerms)
ITermLoader
loadSingleTerms
in interface ITermLoader
vocType
- VocabularyEnumvoc
- vocabularymissingTerms
- Set of UUIDs for terms to be loaded.Copyright © 2007-2020 EDIT. All Rights Reserved.