Package io.jmix.notificationsflowui
Class NotificationDialogs
java.lang.Object
io.jmix.notificationsflowui.NotificationDialogs
Provides methods to create notification dialogs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CurrentUserSubstitutionprotected final DataManagerprotected final DialogWindowsprotected final Messagesprotected final InAppNotificationsServiceprotected final NotificationTypesRepositoryprotected final UiPropertiesprotected final UserSessionNotifierprotected final ViewRegistry -
Constructor Summary
ConstructorsConstructorDescriptionNotificationDialogs(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.DialogcreateReadNotificationDialog(InAppNotification notification) protected voidupdateReadStatus(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
-