Class Notification
java.lang.Object
org.ametys.runtime.plugins.admin.notificator.Notification
Represents a client-side notification.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe possible type of notification -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe associated JS actionprotected StringThe icon of the notificationprotected I18nizableTextThe detailed message of the notificationprotected I18nizableTextThe title of the notificationprotected Notification.NotificationTypeThe type of notification -
Constructor Summary
ConstructorsConstructorDescriptionNotification(Notification.NotificationType type, I18nizableText title, I18nizableText message, String iconGlyph, String action) Constructs a new notification. -
Method Summary
-
Field Details
-
_type
The type of notification -
_title
The title of the notification -
_message
The detailed message of the notification -
_iconGlyph
The icon of the notification -
_action
The associated JS action
-
-
Constructor Details
-
Notification
public Notification(Notification.NotificationType type, I18nizableText title, I18nizableText message, String iconGlyph, String action) Constructs a new notification.- Parameters:
type- The type of notificationtitle- The title of the notificationmessage- The detailed message (description) of the notification (can contain HTML)iconGlyph- The icon of the notificationaction- The JS action to execute when clicking on '<a>' elements of description
-
-
Method Details
-
toMap
Gets the representation of a notification as a map- Returns:
- The notification as a map
-