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).

  • 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

      public NotificationProperties.Mentions getMentions()
    • getAssignments

      public NotificationProperties.Assignments getAssignments()
    • getReplies

      public NotificationProperties.Replies getReplies()