public interface NotificationPreferenceFacade
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChannelValue(NotificationChannel channel)
Get the channel value for channel
|
NotificationPreferenceData |
getNotificationPreference()
Deprecated.
since 6.7.Use getNotificationPreferences()
|
java.util.List<NotificationPreferenceData> |
getNotificationPreferences()
Get the notification preference data list
|
NotificationPreferenceDataList |
getNotificationPreferences(java.util.List<NotificationPreferenceData> notificationPreferences)
Get the notification preference data list
|
java.util.List<NotificationPreferenceData> |
getNotificationPreferences(java.util.Set<NotificationChannel> enabledChannels)
Get all notification channels according to enabledChannels
|
java.util.List<NotificationPreferenceData> |
getValidNotificationPreferences()
Get the valid notification preference data, for example the mail has mail address, the sms has phone number
|
java.util.List<NotificationPreferenceData> |
getValidNotificationPreferences(java.util.Set<NotificationChannel> enabledChannels)
Get the valid notification preference data according to the enabledChannels
|
void |
updateNotificationPreference(java.util.List<NotificationPreferenceData> notificationPreferenceDataList)
Update the notification preference to database
|
void |
updateNotificationPreference(NotificationPreferenceData notificationPreferenceData)
Deprecated.
since 6.7. Use updateNotificationPreference(List
|
@Deprecated void updateNotificationPreference(NotificationPreferenceData notificationPreferenceData)
notificationPreferenceData - The new notification preference to be updated@Deprecated NotificationPreferenceData getNotificationPreference()
void updateNotificationPreference(java.util.List<NotificationPreferenceData> notificationPreferenceDataList)
notificationPreferenceDataList - The new notification preference to be updatedNotificationPreferenceDataList getNotificationPreferences(java.util.List<NotificationPreferenceData> notificationPreferences)
notificationPreferences - the notificationPreference data listjava.util.List<NotificationPreferenceData> getNotificationPreferences()
java.util.List<NotificationPreferenceData> getValidNotificationPreferences()
java.util.List<NotificationPreferenceData> getValidNotificationPreferences(java.util.Set<NotificationChannel> enabledChannels)
enabledChannels - the enabled channelsjava.util.List<NotificationPreferenceData> getNotificationPreferences(java.util.Set<NotificationChannel> enabledChannels)
enabledChannels - the enabled channelsjava.lang.String getChannelValue(NotificationChannel channel)
channel - the notification channelCopyright © 2018 SAP SE. All Rights Reserved.