Package io.jmix.notificationsflowui
Class NotificationDialogs
java.lang.Object
io.jmix.notificationsflowui.NotificationDialogs
Provides methods to create notification dialogs.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CurrentUserSubstitution
protected final DataManager
protected final DialogWindows
protected final Messages
protected final InAppNotificationsService
protected final NotificationTypesRepository
protected final UiProperties
protected final UserSessionNotifier
protected final ViewRegistry
-
Constructor Summary
ConstructorDescriptionNotificationDialogs
(DialogWindows dialogWindows, UiProperties uiProperties, ViewRegistry viewRegistry, InAppNotificationsService notificationsService, Messages messages, DataManager dataManager, NotificationTypesRepository notificationTypesRepository, UserSessionNotifier userSessionNotifier, CurrentUserSubstitution currentUserSubstitution) -
Method Summary
Modifier and TypeMethodDescriptioncreateCreateNotificationDialog
(View<?> origin) com.vaadin.flow.component.dialog.Dialog
createReadNotificationDialog
(InAppNotification notification) protected void
updateReadStatus
(InAppNotification notification, NotificationReadStatus status)
-
Field Details
-
dialogWindows
-
uiProperties
-
viewRegistry
-
notificationsService
-
messages
-
dataManager
-
notificationTypesRepository
-
userSessionNotifier
-
currentUserSubstitution
-
-
Constructor Details
-
NotificationDialogs
public NotificationDialogs(DialogWindows dialogWindows, UiProperties uiProperties, ViewRegistry viewRegistry, InAppNotificationsService notificationsService, Messages messages, DataManager dataManager, NotificationTypesRepository notificationTypesRepository, UserSessionNotifier userSessionNotifier, CurrentUserSubstitution currentUserSubstitution)
-
-
Method Details
-
createCreateNotificationDialog
- Returns:
- dialog window with initialized create notification dialog
-
createReadNotificationDialog
public com.vaadin.flow.component.dialog.Dialog createReadNotificationDialog(InAppNotification notification) - Parameters:
notification
- notification to read- Returns:
- read notification dialog instance
-
updateReadStatus
-