public class SendSMSActionTaskCmdImpl extends MarketingCampaignElementTaskCmdImpl implements SendSMSActionTaskCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | PARAM_CONTENT_ID
Constant representing the SMS content name-value-pair.
|
Constructor and Description |
---|
SendSMSActionTaskCmdImpl()
This method is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean | checkSMSOptIn(java.lang.Integer storeId, java.lang.Long userId)
This method will check if the specified user has opted in for SMS marketing messages in the store, or at the site level.
|
java.lang.Long | getMemberIdToSendSmsMessage()
This method returns the member ID to whom to send the sms message.
|
protected java.lang.String | getMobileNumber(java.lang.Long userId)
This method gets the registered mobile number for a customer.
|
void | performExecute()
This method send a SMS message to the customer who has a mobile number registered and has opted in for SMS marketing messages.
|
protected java.lang.String | personalizeMessage(java.lang.String message, java.lang.Long userId)
This method can be extended by customizations to be able to personalize the SMS text message to a customer.
|
protected void | sendSMSMessage(java.lang.String msgBody, java.lang.String mobileNumber)
This method will call SendMsgCmd to send the SMS message to the customer if the customer has register a mobile number.
|
java.util.List | validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for the campaign element.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public static final java.lang.String PARAM_CONTENT_ID
public SendSMSActionTaskCmdImpl()
public java.util.List validateParameters(java.util.Map elementParameters)
public java.lang.Long getMemberIdToSendSmsMessage()
public void performExecute()
protected java.lang.String personalizeMessage(java.lang.String message, java.lang.Long userId)
protected void sendSMSMessage(java.lang.String msgBody, java.lang.String mobileNumber)
protected java.lang.String getMobileNumber(java.lang.Long userId)
protected boolean checkSMSOptIn(java.lang.Integer storeId, java.lang.Long userId)