public class NotificationPreferencePopulator extends java.lang.Object implements Populator<CustomerModel,NotificationPreferenceData>
| Constructor and Description |
|---|
NotificationPreferencePopulator() |
| Modifier and Type | Method and Description |
|---|---|
SmsNotificationChannelStrategy |
getSmsNotificationChannelStrategy() |
void |
populate(CustomerModel source,
NotificationPreferenceData target)
Populate notification preference data into target.CustomerModel contains UID which is the email address
SmsNotificationChannelStrategy will provide the phone number
|
void |
setSmsNotificationChannelStrategy(SmsNotificationChannelStrategy smsNotificationChannelStrategy) |
public SmsNotificationChannelStrategy getSmsNotificationChannelStrategy()
public void setSmsNotificationChannelStrategy(SmsNotificationChannelStrategy smsNotificationChannelStrategy)
public void populate(CustomerModel source, NotificationPreferenceData target) throws ConversionException
populate in interface Populator<CustomerModel,NotificationPreferenceData>source - The UID in CustomerModel will be used to fill emailAddress in targettarget - The target will contain the populated notification preference data about whether email and sms are
enabled and what their detail informations areConversionException - if an error occursCopyright © 2017 SAP SE. All Rights Reserved.