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
    • Constructor Detail

      • LocalizationServiceFilterUtil

        LocalizationServiceFilterUtil()
    • Method Detail

      • filterByLanguage

         static <R, V> Multimap<R, V> filterByLanguage(Table<R, String, V> 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 multimap of rows and values of the provided localizedTextTable.

      • filterByReferences

         static <T> List<T> filterByReferences(Multimap<String, T> 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.