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 class
Notification.NotificationType
The possible type of notification
-
Field Summary
Fields Modifier and Type Field Description protected String
_action
The associated JS actionprotected String
_iconGlyph
The icon of the notificationprotected I18nizableText
_message
The detailed message of the notificationprotected I18nizableText
_title
The title of the notificationprotected Notification.NotificationType
_type
The 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
-
-