Package su.onno.ui.notifications
Class NotificationProperties
java.lang.Object
su.onno.ui.notifications.NotificationProperties
@ConfigurationProperties(prefix="onno.notifications")
public class NotificationProperties
extends Object
Configuration for the
/api/notifications per-user notification timeline, under the
onno.notifications.* namespace. The notification panel is a generic collaboration surface:
every signed-in user gets a top-right bell with an unread badge and a timeline of updates concerning
them, stored in the framework-owned onno_notifications table rather than in any app entity.
The built-in producers each have their own toggle; an app adds further sources simply by
registering a Spring @EventListener that calls NotificationService.notify(su.onno.ui.notifications.NotificationRequest).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe assignment producer: when a catalog/documentRef<>attribute annotatedAssigneeFieldis set to (or changed to) a user, that user is notified they were assigned the record.static classThe mention producer: turns each readable@-mention of a user in a freshly posted comment (anEntityMentionedEvent) into a notification for the mentioned person.static classThe reply producer: when a comment replies to another comment (aCommentRepliedEvent), the parent comment's author is notified. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanvoidsetEnabled(boolean enabled) voidsetPageSize(int pageSize) voidsetRetentionDays(int retentionDays)
-
Constructor Details
-
NotificationProperties
public NotificationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize) -
getRetentionDays
public int getRetentionDays() -
setRetentionDays
public void setRetentionDays(int retentionDays) -
getMentions
-
getAssignments
-
getReplies
-