public class SMSTemplateNotificationServiceImpl extends Object implements org.broadleafcommerce.common.notification.service.NotificationService
Modifier and Type | Field and Description |
---|---|
protected ContentTargeterService |
contentTargeterService |
protected org.springframework.core.env.Environment |
environment |
protected org.broadleafcommerce.common.expression.BroadleafExpressionParser |
expressionParser |
protected org.apache.commons.logging.Log |
LOG |
protected org.broadleafcommerce.common.sms.service.SMSMessageCreator |
messageCreator |
protected static String |
SMS_TEMPLATE_PROPERTY_PREFIX |
protected SMSTemplateService |
smsTemplateService |
Constructor and Description |
---|
SMSTemplateNotificationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(Class<? extends org.broadleafcommerce.common.notification.service.type.Notification> clazz) |
protected String |
getBody(org.broadleafcommerce.common.notification.service.type.SMSNotification notification,
SMSTemplate smsTemplate) |
protected String |
getFromNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification,
SMSTemplate smsTemplate) |
protected String |
getMediaUrl(org.broadleafcommerce.common.notification.service.type.SMSNotification notification,
SMSTemplate smsTemplate) |
protected String |
getSMSTemplateProperty(org.broadleafcommerce.common.notification.service.type.NotificationEventType notificationEventType,
String propertyName) |
protected String |
getToNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification,
SMSTemplate smsTemplate) |
void |
sendNotification(org.broadleafcommerce.common.notification.service.type.Notification notification) |
protected void |
sendSMSNotification(org.broadleafcommerce.common.notification.service.type.SMSNotification notification,
SMSTemplate smsTemplate) |
protected static final String SMS_TEMPLATE_PROPERTY_PREFIX
protected final org.apache.commons.logging.Log LOG
@Autowired protected org.springframework.core.env.Environment environment
@Autowired @Qualifier(value="blSMSTemplateService") protected SMSTemplateService smsTemplateService
@Autowired @Qualifier(value="blContentTargeterService") protected ContentTargeterService contentTargeterService
@Autowired @Qualifier(value="blSMSMessageCreator") protected org.broadleafcommerce.common.sms.service.SMSMessageCreator messageCreator
@Autowired @Qualifier(value="blExpressionParser") protected org.broadleafcommerce.common.expression.BroadleafExpressionParser expressionParser
public boolean canHandle(Class<? extends org.broadleafcommerce.common.notification.service.type.Notification> clazz)
canHandle
in interface org.broadleafcommerce.common.notification.service.NotificationService
public void sendNotification(org.broadleafcommerce.common.notification.service.type.Notification notification)
sendNotification
in interface org.broadleafcommerce.common.notification.service.NotificationService
protected void sendSMSNotification(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException
protected String getToNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate)
protected String getFromNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate)
protected String getBody(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate)
protected String getMediaUrl(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate)
Copyright © 2020. All rights reserved.