Class Notification
- java.lang.Object
 - 
- org.ametys.runtime.plugins.admin.notificator.Notification
 
 
- 
public class Notification extends Object
Represents a client-side notification. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotification.NotificationTypeThe possible type of notification 
- 
Field Summary
Fields Modifier and Type Field Description protected String_actionThe associated JS actionprotected String_iconGlyphThe icon of the notificationprotected I18nizableText_messageThe detailed message of the notificationprotected I18nizableText_titleThe title of the notificationprotected Notification.NotificationType_typeThe type of notification 
- 
Constructor Summary
Constructors Constructor Description Notification(Notification.NotificationType type, I18nizableText title, I18nizableText message, String iconGlyph, String action)Constructs a new notification. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>toMap()Gets the representation of a notification as a map 
 - 
 
- 
- 
Field Detail
- 
_type
protected Notification.NotificationType _type
The type of notification 
- 
_title
protected I18nizableText _title
The title of the notification 
- 
_message
protected I18nizableText _message
The detailed message of the notification 
- 
_iconGlyph
protected String _iconGlyph
The icon of the notification 
 - 
 
- 
Constructor Detail
- 
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
 
 - 
 
 -