Brightspot CMS Developer Guide
Brightspot CMS Developer Guide
Developer guide
Notifications

Notifications


Brightspot’s notifications mechanism implements the pub-sub architecture. You can trap events, retrieve the interested recipients, and deliver notifications over the recipients’ preferred medium.


Brightspot’s notification system is designed to send useful messages to the right recipients at the right time. The recipient of a notification is an instantiation of the class Receiver. Receivers are typically editors, but they can also be mechanical such as a listserv or a log file. Every receiver has a Set<Subscription> representing the subscriptions. A Subscription describes the what, when, who, and where a notification is sent.

  • The “what” is defined by the subscription’s MessageContext, which contains information and metadata about the triggering event. An example of message context is “item 12345 was published.”
  • The “when” and “who” are defined by a subscription’s Publisher. This class detects when an event happens, assembles the message context, and broadcasts the message context to the receivers.
  • The “where” is defined by a DeliveryOption. Each subscription has a Set<DeliveryOption> representing the different media over which the notification is sent and received. Each delivery option delivers a specific type of Message (email, text, Slack, etc.), and that message can be customized with a MessageFormatter based on the specific subscription and message context.

Brightspot’s notification architecture is designed for extensibility, such as the following scenarios:

  • Implement custom delivery options to integrate with third-party messaging services not included with Brightspot.
  • Implement custom subscriptions so that editors receive notifications for custom events and actions in a workflow.
  • Define custom message formatters with branding and content for each delivery option-subscription combination.
Previous Topic
Implementing sitemaps for custom content types
Next Topic
Notification lifecycle
Was this topic helpful?
Thanks for your feedback.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

Asset types
Module types
Page types
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

Content types
Modules
Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

Dashboards
Publishing
Workflows
Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

Field types
Content modeling
Rich-text elements
Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

Google Analytics
Shopify
Apple News