<editor:StudioPlugin>
<editor:configuration>
<notifications:NotificationsStudioPlugin/>
</editor:configuration>
</editor:StudioPlugin>
What you will learn
- Prepare Studio for using custom notifications
Prerequisites
- A Blueprint workspace
Target Audience
Adding Custom Notifications
On several occasions, CoreMedia Studio shows notifications (see also Notifications. To add your own custom notifications to CoreMedia Studio is actually quite straightforward. In the following, the necessary steps are described.
-
For your server-side module where you want to create a notification, make sure you add a Maven dependency on
notification-api. This module contains theNotificationServiceAPI. -
Make sure that your web-app has a Maven dependency on
com.coremedia.cms:notification-elastic. This module contains an Elastic Core based implementation of theNotificationService. For the Blueprint Studio web-app this is already taken care of by the extension modulenotification-elastic-studio-lib. By default, the providedNotificationServiceuses MongoDB. -
Finally, take care of declaring a
NotificationServiceSpring bean, either via component scan or explicit declaration. -
For the Studio client side, you have to add the Maven dependency
notification-studio-clientto the module where you want to develop new notification UIs. -
In addition, you have to activate the notifications framework via a plugin (for Blueprint Studio, this is already taken care of by the extension module
bpbase-notification-studio-plugin):
Further Information
For more information on adding custom notifications to CoreMedia Studio, refer to the Studio Developer Manual – Adding Custom Notifications.