Class Messages

java.lang.Object
io.goobi.viewer.messages.Messages

public final class Messages extends Object
Utility class for looking up localised message strings from the viewer's resource bundles.
  • Method Details

    • error

      public static void error(String targetId, String message, String... messageParams)
      error.
      Parameters:
      targetId - JSF component ID to attach the message to
      message - message key or text to display
      messageParams - placeholder values substituted into the message
    • error

      public static void error(String message)
      error.
      Parameters:
      message - message key or text to display
    • info

      public static void info(String targetId, String message, String... messageParams)
      info.
      Parameters:
      targetId - JSF component ID to attach the message to
      message - message key or text to display
      messageParams - placeholder values substituted into the message
    • info

      public static void info(String message)
      info.
      Parameters:
      message - message key or text to display
    • warn

      public static void warn(String message)
      warn.
      Parameters:
      message - message key or text to display
    • warn

      public static void warn(String targetId, String message, String... messageParams)
      warn.
      Parameters:
      targetId - JSF component ID to attach the message to
      message - message key or text to display
      messageParams - placeholder values substituted into the message
    • clear

      public static void clear()
      clear.
    • translate

      public static String translate(String inMessage, Locale locale, String... messageParams)
      translate.
      Parameters:
      inMessage - message key to look up in the resource bundle
      locale - locale used for translation lookup
      messageParams - placeholder values substituted into the translated message
      Returns:
      translated and interpolated message string