public class NotificationSuite
extends java.lang.Object
Constructor and Description |
---|
NotificationSuite() |
Modifier and Type | Method and Description |
---|---|
static NotificationEvent |
createEvent(NotificationItem ni,
short type,
Agent a)
Create a NotificationEvent from a NotificationItem.
|
static void |
disableNotification()
Disables sending of notification for this transaction
Default is enabled.
|
static void |
enableNotification()
Enables sending of notification for this transaction.
|
static boolean |
isNotificationEnabled()
Determine if Notifications are enabled for this transaction.
|
static void |
publish(NotificationEvent e)
Publish an event.
|
static void |
publish(NotificationItem ni,
short type)
Publish a NotificationItem.
|
static void |
publish(NotificationItem ni,
short type,
Agent a)
Publish a NotificationItem.
|
static void |
publishImmediate(NotificationEvent e)
Publish an event immediately.
|
static void |
publishImmediate(NotificationItem ni,
short type)
Publish a NotificationItem immediately.
|
static void |
publishImmediate(NotificationItem ni,
short type,
Agent a)
Publish a NotificationItem immediately.
|
static void |
setAvoidAutoNotification(boolean avoidAutoNotification)
Avoid sending of notifications to originating session.
|
static void |
setMeToo(boolean meToo)
Send notifications also to originating session.
|
public static void disableNotification()
public static void enableNotification()
public static boolean isNotificationEnabled()
public static NotificationEvent createEvent(NotificationItem ni, short type, Agent a)
ni
- the item to be contained in the event objecttype
- the event type Names
a
- the agent for which the event is destinedpublic static void publish(NotificationItem ni, short type)
NotificationItem.getAgent()
ni
- the item to publishtype
- the event type Names
java.lang.Exception
public static void publish(NotificationItem ni, short type, Agent a)
ni
- the item to publishtype
- the event type Names
a
- the agent to sent the event to.java.lang.Exception
public static void publish(NotificationEvent e)
e
- public static void publishImmediate(NotificationEvent e) throws java.lang.Exception
e
- java.lang.Exception
public static void publishImmediate(NotificationItem ni, short type) throws java.lang.Exception
NotificationItem.getAgent()
ni
- the item to publishtype
- the event type Names
java.lang.Exception
public static void publishImmediate(NotificationItem ni, short type, Agent a) throws java.lang.Exception
ni
- the item to publishtype
- the event type Names
a
- the agent to sent the event to.java.lang.Exception
public static void setMeToo(boolean meToo)
This behavior can be changed (for all events in the current transaction), by setting meToo to true.
N.B.:
meToo
is ignored, when avoidAutoNotification
is set.
meToo
is automatically set to true if the changing function has not been called from the main window.
meToo
- true when notifications should also be send to the originating session.public static void setAvoidAutoNotification(boolean avoidAutoNotification)
This behavior can be avoided (for all events in the current transaction), by setting avoidAutoNotification to true. Then,
N.B.: avoidAutoNotification
is stronger than meToo
.
avoidAutoNotification
- true when sending to current session should be avoided.@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.