Uses of Class
com.kingsrook.qqq.backend.core.alerts.NotificationSignal
Packages that use NotificationSignal
-
Uses of NotificationSignal in com.kingsrook.qqq.backend.core.alerts
Methods in com.kingsrook.qqq.backend.core.alerts that return NotificationSignalModifier and TypeMethodDescriptionNotificationSignal.withAttribute(String key, String value) Add a routing label (not displayed by default).NotificationSignal.withAudience(NotificationAudience audience) Fluent setter for audience (who it is for; required)Fluent setter for body (the message, markdown (rendered safely, no raw HTML))NotificationSignal.withCategory(NotificationCategory category) Fluent setter for category (default SYSTEM)NotificationSignal.withExpireAt(Instant expireAt) Fluent setter for expireAt (hidden after this time)Fluent setter for link (a deep link to where the user acts on it)NotificationSignal.withOccurredAt(Instant occurredAt) Fluent setter for occurredAt (default: when QAlerts.notify is called)NotificationSignal.withPublishAt(Instant publishAt) Fluent setter for publishAt (not shown before this time)NotificationSignal.withSeverity(NotificationSeverity severity) Fluent setter for severity (default INFO)NotificationSignal.withSourceKey(String sourceKey) Fluent setter for sourceKey (dedup key: a second notify with the same key and audience updates the first)NotificationSignal.withSourceName(String sourceName) Fluent setter for sourceName (who emitted it: a qbit or app name)NotificationSignal.withSourceRecordId(String sourceRecordId) Fluent setter for sourceRecordId (the id of the record it is about)NotificationSignal.withSourceTableName(String sourceTableName) Fluent setter for sourceTableName (the table of the record it is about)NotificationSignal.withSticky(Boolean sticky) Fluent setter for sticky (a banner until dismissed (meant for CRITICAL))Fluent setter for title (the headline, plain text; required)Methods in com.kingsrook.qqq.backend.core.alerts with parameters of type NotificationSignalModifier and TypeMethodDescriptiondefault voidAlertSinkInterface.notify(NotificationSignal signal) Deliver a user notification.voidLoggingAlertSink.notify(NotificationSignal signal) Log a user notification (there is no inbox without an implementation).static voidQAlerts.notify(NotificationSignal signal) Send a user notification ("tell these people this").static voidQAlerts.notify(NotificationSignal signal, QBackendTransaction transaction) Send a user notification after the given transaction commits (or now, when transaction is null and QContext has none).