Class SMSTemplateNotificationServiceImpl
java.lang.Object
com.broadleafcommerce.advancedcms.notification.service.SMSTemplateNotificationServiceImpl
- All Implemented Interfaces:
org.broadleafcommerce.common.notification.service.NotificationService
public class SMSTemplateNotificationServiceImpl
extends Object
implements org.broadleafcommerce.common.notification.service.NotificationService
- Author:
- Nick Crum ncrum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTargeterServiceprotected org.springframework.core.env.Environmentprotected org.broadleafcommerce.common.expression.BroadleafExpressionParserprotected final org.apache.commons.logging.Logprotected org.broadleafcommerce.common.sms.service.SMSMessageCreatorprotected static final Stringprotected SMSTemplateService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(Class<? extends org.broadleafcommerce.common.notification.service.type.Notification> clazz) protected StringgetBody(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) protected StringgetFromNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) protected StringgetMediaUrl(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) protected StringgetSMSTemplateProperty(org.broadleafcommerce.common.notification.service.type.NotificationEventType notificationEventType, String propertyName) protected StringgetToNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) voidsendNotification(org.broadleafcommerce.common.notification.service.type.Notification notification) protected voidsendSMSNotification(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate)
-
Field Details
-
SMS_TEMPLATE_PROPERTY_PREFIX
- See Also:
-
LOG
protected final org.apache.commons.logging.Log LOG -
environment
@Autowired protected org.springframework.core.env.Environment environment -
smsTemplateService
-
contentTargeterService
@Autowired @Qualifier("blContentTargeterService") protected ContentTargeterService contentTargeterService -
messageCreator
@Autowired @Qualifier("blSMSMessageCreator") protected org.broadleafcommerce.common.sms.service.SMSMessageCreator messageCreator -
expressionParser
@Autowired @Qualifier("blExpressionParser") protected org.broadleafcommerce.common.expression.BroadleafExpressionParser expressionParser
-
-
Constructor Details
-
SMSTemplateNotificationServiceImpl
public SMSTemplateNotificationServiceImpl()
-
-
Method Details
-
canHandle
public boolean canHandle(Class<? extends org.broadleafcommerce.common.notification.service.type.Notification> clazz) - Specified by:
canHandlein interfaceorg.broadleafcommerce.common.notification.service.NotificationService
-
sendNotification
public void sendNotification(org.broadleafcommerce.common.notification.service.type.Notification notification) - Specified by:
sendNotificationin interfaceorg.broadleafcommerce.common.notification.service.NotificationService
-
sendSMSNotification
protected void sendSMSNotification(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) throws org.broadleafcommerce.common.exception.ServiceException - Throws:
org.broadleafcommerce.common.exception.ServiceException
-
getToNumber
protected String getToNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) -
getFromNumber
protected String getFromNumber(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) -
getBody
protected String getBody(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) -
getMediaUrl
protected String getMediaUrl(org.broadleafcommerce.common.notification.service.type.SMSNotification notification, SMSTemplate smsTemplate) -
getSMSTemplateProperty
-