Class InAppNotificationChannel
java.lang.Object
io.jmix.notifications.channel.impl.InAppNotificationChannel
- All Implemented Interfaces:
NotificationChannel
@Component("ntf_InAppNotificationChannel")
public class InAppNotificationChannel
extends Object
implements NotificationChannel
Default notification channel.
Sends notifications within application (to user UI).
-
Field Summary
Modifier and TypeFieldDescriptionprotected UnconstrainedDataManager
static final String
protected UserSessionNotifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Provides unique name of channel.protected void
notifyUserSession
(String userName) boolean
send
(Notification notification) Sends provided notification via this notification channel.protected void
storeNotification
(Notification notification)
-
Field Details
-
NAME
- See Also:
-
userSessionNotifier
-
dataManager
-
-
Constructor Details
-
InAppNotificationChannel
public InAppNotificationChannel()
-
-
Method Details
-
getName
Description copied from interface:NotificationChannel
Provides unique name of channel.- Specified by:
getName
in interfaceNotificationChannel
- Returns:
- channel name
-
send
Description copied from interface:NotificationChannel
Sends provided notification via this notification channel.- Specified by:
send
in interfaceNotificationChannel
- Parameters:
notification
- notification- Returns:
- true if notification was successfully sent, false otherwise
-
notifyUserSession
-
storeNotification
-