Class LocalizationServiceFilterUtil

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalizationServiceFilterUtil

        LocalizationServiceFilterUtil()
    • 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.