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 InAppSubscribableChannelSupplier
protected UnconstrainedDataManager
static final String
protected UserSessionNotifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Provides unique name of channel.void
init()
protected void
notifyUserSession
(String userName) protected void
processMessage
(org.springframework.messaging.Message<?> message) boolean
send
(Notification notification) Sends provided notification via this notification channel.protected void
storeNotification
(Notification notification)
-
Field Details
-
NAME
- See Also:
-
userSessionNotifier
-
dataManager
-
channelSupplier
-
-
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
-
init
@EventListener(org.springframework.boot.context.event.ApplicationStartedEvent.class) public void init() -
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
-
processMessage
protected void processMessage(org.springframework.messaging.Message<?> message) -
notifyUserSession
-
storeNotification
-