Package io.meeds.pwa.plugin
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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetFullName(String username) default StringgetId()default org.exoplatform.social.core.manager.IdentityManagerdefault StringgetSpaceName(String id) default org.exoplatform.social.core.space.spi.SpaceServicedefault voidhandleAction(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String action, String username) default StringhtmlToText(String html) process(org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.services.resources.LocaleConfig localeConfig) Converts a Web Notification into a Push Notification
-
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-NotificationInforetrieved fromWebNotificationServicedata modellocaleConfig-LocaleConfigof the user's language- Returns:
PwaNotificationMessagecontaining title, body and Web Notification elements to display to end user
-
getId
-
getIdentityManager
default org.exoplatform.social.core.manager.IdentityManager getIdentityManager() -
getSpaceService
default org.exoplatform.social.core.space.spi.SpaceService getSpaceService() -
getFullName
-
getSpaceName
-
htmlToText
-
handleAction
-