Class WebMessager
- java.lang.Object
-
- org.silverpeas.core.web.mvc.webcomponent.WebMessager
-
public final class WebMessager extends Object
This utility class provides tools to display easily some dynamic notifications using the notifier plugin.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
addError(String message, Object... parameters)
Message
addInfo(String message, Object... parameters)
Message
addSevere(String message, Object... parameters)
Message
addSuccess(String message, Object... parameters)
Message
addWarning(String message, Object... parameters)
String
formatDate(Temporal temporal)
String
formatDateTime(Temporal temporal)
static WebMessager
getInstance()
LocalizationBundle
getLocalizationBundle(String bundleBaseName)
Gets the localization bundle with the specified base name and for the root locale.
-
-
-
Method Detail
-
getInstance
public static WebMessager getInstance()
-
getLocalizationBundle
public LocalizationBundle getLocalizationBundle(String bundleBaseName)
Gets the localization bundle with the specified base name and for the root locale.- Parameters:
bundleBaseName
- the bundle base name.- Returns:
- the asked localization bundle.
-
formatDate
public String formatDate(Temporal temporal)
- See Also:
MessageNotifier.formatDate(Temporal)
-
formatDateTime
public String formatDateTime(Temporal temporal)
- See Also:
MessageNotifier.formatDateTime(Temporal)
-
-