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 Details

    • SMS_TEMPLATE_PROPERTY_PREFIX

      protected static final String 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

      @Autowired @Qualifier("blSMSTemplateService") protected SMSTemplateService 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:
      canHandle in interface org.broadleafcommerce.common.notification.service.NotificationService
    • sendNotification

      public void sendNotification(org.broadleafcommerce.common.notification.service.type.Notification notification)
      Specified by:
      sendNotification in interface org.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

      protected String getSMSTemplateProperty(org.broadleafcommerce.common.notification.service.type.NotificationEventType notificationEventType, String propertyName)