public class NotificationManager extends Object
Constructor and Description |
---|
NotificationManager()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
static NotificationManager |
getManager()
Give access to the manager instance
|
void |
publishDeletion(Notification message)
Publish a notification so NotificationListerner that were registered and
have subscribe to the type of the given notification will remove it from their notification list
(deletion is due to notification timeout)
|
static void |
publishDetailedError(Object topic,
String message,
String details)
Publish an error message with details
|
static void |
publishDetailedInformation(Object topic,
String message,
String details)
Publish an information message with details
|
static void |
publishDetailedWarning(Object topic,
String message,
String details)
Publish an warning message with details
|
static void |
publishError(Object topic,
String message)
Publish an error message
|
static void |
publishException(Object topic,
String message,
Exception exception)
Publish a Java exception
|
static void |
publishInformation(Object topic,
String message)
Publish an information message
|
static void |
publishResolvableError(Object topic,
String message,
Graph graph,
Object[] data,
NotificationResolution resolution)
Publish an error message with its resolution options
|
static void |
publishResolvableWarning(Object topic,
String message,
Graph graph,
Object[] data,
NotificationResolution resolution)
Publish a warning message with its resolution options
|
static void |
publishWarning(Object topic,
String message)
Publish a warning message
|
void |
registerListener(NotificationListener listener,
Object topic)
Register a listener and subscribe it to the given topic
|
public static NotificationManager getManager()
public void registerListener(NotificationListener listener, Object topic)
listener
- the NotificationListerner to registertopic
- the topic the listener subscribe topublic static void publishError(Object topic, String message)
topic
- the topic of the notificationmessage
- the message of the notificationpublic static void publishDetailedError(Object topic, String message, String details)
topic
- the topic of the notificationmessage
- the message of the notificationdetails
- the details associated to the notificationpublic static void publishException(Object topic, String message, Exception exception)
topic
- the topic of the notificationmessage
- the message of the notificationexception
- the Exception to publishpublic static void publishWarning(Object topic, String message)
topic
- the topic of the notificationmessage
- the message of the notificationpublic static void publishDetailedWarning(Object topic, String message, String details)
topic
- the topic of the notificationmessage
- the message of the notificationdetails
- the details associated to the notificationpublic static void publishInformation(Object topic, String message)
topic
- the topic of the notificationmessage
- the message of the notificationpublic static void publishDetailedInformation(Object topic, String message, String details)
topic
- the topic of the notificationmessage
- the message of the notificationdetails
- the details associated to the notificationpublic static void publishResolvableError(Object topic, String message, Graph graph, Object[] data, NotificationResolution resolution)
topic
- the topic of the notificationmessage
- the message of the notificationgraph
- the graph concerned by the notificationdata
- the data required for theresolution
- the NotificationResolution containing the resolution optionspublic static void publishResolvableWarning(Object topic, String message, Graph graph, Object[] data, NotificationResolution resolution)
topic
- the topic of the notificationmessage
- the message of the notificationgraph
- the graph concerned by the notificationdata
- the data required for theresolution
- the NotificationResolution containing the resolution optionspublic void publishDeletion(Notification message)
message
- the Notification to removeCopyright © 2005–2020. All rights reserved.