Class MessageNotifier
- java.lang.Object
-
- org.silverpeas.core.notification.message.MessageNotifier
-
public class MessageNotifier extends Object
This utility class provides tools to display easily some dynamic notifications using the notifier plugin. User: Yohann Chastagnier Date: 23/07/13
-
-
Constructor Summary
Constructors Constructor Description MessageNotifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Message
addError(String message, Object... parameters)
static Message
addInfo(String message, Object... parameters)
static Message
addSevere(String message, Object... parameters)
static Message
addSuccess(String message, Object... parameters)
static Message
addWarning(String message, Object... parameters)
static String
formatDate(Temporal temporal)
Formats the given temporal into an date ISO FORMAT that will be interpreted by the UI tools.static String
formatDateTime(Temporal temporal)
Formats the given temporal into an datetime ISO FORMAT that will be interpreted by the UI tools.static org.silverpeas.kernel.bundle.LocalizationBundle
getLocalizationBundle(String bundleBaseName)
Gets the localization bundle with the specified base name and for the root locale.
-
-
-
Method Detail
-
getLocalizationBundle
public static org.silverpeas.kernel.bundle.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:
- a localization bundle.
-
formatDate
public static String formatDate(Temporal temporal)
Formats the given temporal into an date ISO FORMAT that will be interpreted by the UI tools.- Parameters:
temporal
- a temporal to format.- Returns:
- the date ISO format.
-
-