Interface PwaNotificationPlugin

All Known Implementing Classes:
DefaultPwaNotificationPlugin
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PwaNotificationPlugin
  • Method Details

    • process

      PwaNotificationMessage process(org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.services.resources.LocaleConfig localeConfig)
      Converts a Web Notification into a Push Notification
      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
    • getId

      default String getId()
    • getIdentityManager

      default org.exoplatform.social.core.manager.IdentityManager getIdentityManager()
    • getSpaceService

      default org.exoplatform.social.core.space.spi.SpaceService getSpaceService()
    • getFullName

      default String getFullName(String username)
    • getSpaceName

      default String getSpaceName(String id)
    • htmlToText

      default String htmlToText(String html)
    • handleAction

      default void handleAction(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String action, String username)