Class DefaultPwaNotificationPlugin

java.lang.Object
io.meeds.pwa.plugin.DefaultPwaNotificationPlugin
All Implemented Interfaces:
PwaNotificationPlugin

@Component public class DefaultPwaNotificationPlugin extends Object implements PwaNotificationPlugin
  • Constructor Details

    • DefaultPwaNotificationPlugin

      public DefaultPwaNotificationPlugin()
  • Method Details

    • process

      public PwaNotificationMessage process(org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.services.resources.LocaleConfig localeConfig)
      Description copied from interface: PwaNotificationPlugin
      Converts a Web Notification into a Push Notification
      Specified by:
      process in interface PwaNotificationPlugin
      Parameters:
      notification - NotificationInfo retrieved from WebNotificationService data model
      localeConfig - LocaleConfig of the user's language
      Returns:
      PwaNotificationMessage containing title, body and Web Notification elements to display to end user