Class SendSMSActionTaskCmdImpl

    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values

        public static final java.lang.String PARAM_CONTENT_ID
        Constant representing the SMS content name-value-pair.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SendSMSActionTaskCmdImpl

        public SendSMSActionTaskCmdImpl()
        This method is the default constructor. It currently performs no actions.
    • Method Detail

      • validateParameters

        public 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. It checks for the parameter contentId, and that the content is of the type Sms (text for mobile device).
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        validateParameters in class MarketingCampaignElementTaskCmdImpl
        elementParameters - The name value pairs for this element.
        This method returns a list of ApplicationError exceptions that contains any validation errors. The list may be empty or be null.
      • getMemberIdToSendSmsMessage

        public java.lang.Long getMemberIdToSendSmsMessage()
        This method returns the member ID to whom to send the sms message. The default implementation tries to find a registered user associated with the current personalization ID. If none if found, then it tries to find the latest guest user associated with the personalization ID. If none is found, then it returns the current member ID. A customization could override this method to send the sms message to a different customer, for example, to a customer who referred this customer.
        This method returns a member ID to which the sms message should be sent. If null is returned, then no sms message will be sent.
      • performExecute

        public 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.
        Specified by:
        performExecute in interface
        performExecute in class MarketingCampaignElementTaskCmdImpl