Package io.meeds.pwa.plugin
Class DefaultPwaNotificationPlugin
java.lang.Object
io.meeds.pwa.plugin.DefaultPwaNotificationPlugin
- All Implemented Interfaces:
PwaNotificationPlugin
@Component
public class DefaultPwaNotificationPlugin
extends Object
implements PwaNotificationPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.services.resources.LocaleConfig localeConfig) Converts a Web Notification into a Push NotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.pwa.plugin.PwaNotificationPlugin
getFullName, getId, getIdentityManager, getSpaceName, getSpaceService, handleAction, htmlToText
-
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:PwaNotificationPluginConverts a Web Notification into a Push Notification- Specified by:
processin interfacePwaNotificationPlugin- Parameters:
notification-NotificationInforetrieved fromWebNotificationServicedata modellocaleConfig-LocaleConfigof the user's language- Returns:
PwaNotificationMessagecontaining title, body and Web Notification elements to display to end user
-