public class DefaultNotificationPreferenceFacade extends java.lang.Object implements NotificationPreferenceFacade
| Constructor and Description |
|---|
DefaultNotificationPreferenceFacade() |
public Converter<NotificationChannel,NotificationPreferenceData> getNotificationPreferenceEntryConverter()
public void setNotificationPreferenceEntryConverter(Converter<NotificationChannel,NotificationPreferenceData> notificationPreferenceElementConverter)
public NotificationService getNotificationService()
public void setNotificationService(NotificationService notificationService)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public UserService getUserService()
public void setUserService(UserService userService)
public Converter<CustomerModel,NotificationPreferenceData> getNotificationPreferenceConverter()
public void setNotificationPreferenceConverter(Converter<CustomerModel,NotificationPreferenceData> notificationPreferenceConverter)
public Converter<java.util.List<NotificationPreferenceData>,NotificationPreferenceDataList> getNotificationPreferencesConverter()
public void setNotificationPreferencesConverter(Converter<java.util.List<NotificationPreferenceData>,NotificationPreferenceDataList> notificationPreferencesConverter)
public void updateNotificationPreference(NotificationPreferenceData notificationPreferenceData)
NotificationPreferenceFacadeupdateNotificationPreference in interface NotificationPreferenceFacadenotificationPreferenceData - The new notification preference to be updatedpublic NotificationPreferenceData getNotificationPreference()
NotificationPreferenceFacadegetNotificationPreference in interface NotificationPreferenceFacadepublic void updateNotificationPreference(java.util.List<NotificationPreferenceData> notificationPreferenceDataList)
NotificationPreferenceFacadeupdateNotificationPreference in interface NotificationPreferenceFacadenotificationPreferenceDataList - The new notification preference to be updatedpublic java.util.List<NotificationPreferenceData> getNotificationPreferences()
NotificationPreferenceFacadegetNotificationPreferences in interface NotificationPreferenceFacadepublic java.util.List<NotificationPreferenceData> getNotificationPreferences(java.util.Set<NotificationChannel> enabledChannels)
NotificationPreferenceFacadegetNotificationPreferences in interface NotificationPreferenceFacadeenabledChannels - the enabled channelspublic java.util.List<NotificationPreferenceData> getValidNotificationPreferences()
NotificationPreferenceFacadegetValidNotificationPreferences in interface NotificationPreferenceFacadepublic java.util.List<NotificationPreferenceData> getValidNotificationPreferences(java.util.Set<NotificationChannel> enabledChannels)
NotificationPreferenceFacadegetValidNotificationPreferences in interface NotificationPreferenceFacadeenabledChannels - the enabled channelsprotected java.util.List<NotificationPreferenceData> filterValidNotificationPreference(java.util.List<NotificationPreferenceData> preferenceData)
public java.lang.String getChannelValue(NotificationChannel channel)
NotificationPreferenceFacadegetChannelValue in interface NotificationPreferenceFacadechannel - the notification channelprotected boolean validateNotificationPreferenceData(NotificationPreferenceData data)
public NotificationPreferenceDataList getNotificationPreferences(java.util.List<NotificationPreferenceData> notificationPreferences)
NotificationPreferenceFacadegetNotificationPreferences in interface NotificationPreferenceFacadenotificationPreferences - the notificationPreference data listprotected void updateAllChannels(java.util.List<NotificationPreferenceData> allChannels, java.util.Set<NotificationChannel> enabledChannels)
Copyright © 2018 SAP SE. All Rights Reserved.