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
FieldsModifier and TypeFieldDescriptionprotected UnconstrainedDataManagerstatic final Stringprotected UserSessionNotifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Provides unique name of channel.booleansend(Notification notification) Sends provided notification via this notification channel.protected voidstoreNotification(Notification notification)
-
Field Details
-
NAME
- See Also:
-
userSessionNotifier
-
dataManager
-
-
Constructor Details
-
InAppNotificationChannel
public InAppNotificationChannel()
-
-
Method Details
-
getName
Description copied from interface:NotificationChannelProvides unique name of channel.- Specified by:
getNamein interfaceNotificationChannel- Returns:
- channel name
-
send
Description copied from interface:NotificationChannelSends provided notification via this notification channel.- Specified by:
sendin interfaceNotificationChannel- Parameters:
notification- notification- Returns:
- true if notification was successfully sent, false otherwise
-
storeNotification
-