Class Notification
java.lang.Object
org.ametys.runtime.plugins.admin.notificator.Notification
Represents a client-side notification.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The possible type of notification -
Field Summary
Modifier and TypeFieldDescriptionprotected String
The associated JS actionprotected String
The icon of the notificationprotected I18nizableText
The detailed message of the notificationprotected I18nizableText
The title of the notificationprotected Notification.NotificationType
The type of notification -
Constructor Summary
ConstructorDescriptionNotification
(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
-