Interface InternationalMessageService

All Known Implementing Classes:
InternationalMessageServiceImpl

public interface InternationalMessageService
Service that retrieves a message from the database. This can be used to override localized message bundle values from Spring.
Author:
Elbert Bautista (elbertbautista)
  • Method Details

    • resolveInternationalMessage

      String resolveInternationalMessage(String name, Locale locale)
      Follows the same principles of Resource Bundle look-ups by Locale. It will calculate the various locale code strings based on the passed in Locale and will check the most specific code first.

      For example, if you pass in Locale("en", "GB"), it will attempt to find a message source with the Locale.getLocaleCode() of "en_GB" first, followed by one for just "en". It will return null if nothing is found.

      Parameters:
      name -
      locale -
      Returns:
      - a DB InternationalMessage or null if not found.
    • findById

      InternationalMessage findById(Long id)
    • removeFromCache

      void removeFromCache(InternationalMessage internationalMessage, String profileId)