Package org.somda.sdc.glue.common
Class LocalizationServiceFilterUtil
-
- All Implemented Interfaces:
public class LocalizationServiceFilterUtilUtility functions for Localization service.
-
-
Constructor Summary
Constructors Constructor Description LocalizationServiceFilterUtil()
-
Method Summary
Modifier and Type Method Description static Multimap<String, LocalizedText>filterByLanguage(Table<String, String, LocalizedText> localizedTextTable, List<String> languages)Filters localized texts by provided languages. static List<LocalizedText>filterByReferences(Multimap<String, LocalizedText> referencesToTextMap, List<String> references)Filter localized texts by provided references. -
-
Method Detail
-
filterByLanguage
static Multimap<String, LocalizedText> filterByLanguage(Table<String, String, LocalizedText> localizedTextTable, List<String> languages)
Filters localized texts by provided languages.
- Parameters:
localizedTextTable- represents table of all available localized texts.languages- list used as filter.- Returns:
a map of reference as a key and localized text as a value.
-
filterByReferences
static List<LocalizedText> filterByReferences(Multimap<String, LocalizedText> referencesToTextMap, List<String> references)
Filter localized texts by provided references.
- Parameters:
referencesToTextMap- represents a map of reference as a key and localized text as a value.references- list used as filter.- Returns:
a filtered list of localized.
-
-
-
-