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 InAppSubscribableChannelSupplierprotected UnconstrainedDataManagerstatic final Stringprotected UserSessionNotifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Provides unique name of channel.voidinit()protected voidnotifyUserSession(String userName) protected voidprocessMessage(org.springframework.messaging.Message<?> message) booleansend(Notification notification) Sends provided notification via this notification channel.protected voidstoreNotification(Notification notification)
-
Field Details
-
NAME
- See Also:
-
userSessionNotifier
-
dataManager
-
channelSupplier
-
-
Constructor Details
-
InAppNotificationChannel
public InAppNotificationChannel()
-
-
Method Details
-
getName
Description copied from interface:NotificationChannelProvides unique name of channel.- Specified by:
getNamein interfaceNotificationChannel- Returns:
- channel name
-
init
@EventListener(org.springframework.boot.context.event.ApplicationStartedEvent.class) public void init() -
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
-
processMessage
protected void processMessage(org.springframework.messaging.Message<?> message) -
notifyUserSession
-
storeNotification
-