com.ibm.commerce.emarketing.utils

Class EmailDeliveryHelper

  • java.lang.Object
    • com.ibm.commerce.emarketing.utils.EmailDeliveryHelper


  • public class EmailDeliveryHelper
    extends java.lang.Object
    A helper class to deliver e-mail.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static com.ibm.commerce.command.CommandContext getCommandContext()
      Returns the command context used by this email activity.
      static void scheduleBounceJobForEmailActivity(java.lang.Integer emailPromotionId, java.lang.Integer storeId, java.lang.String host, com.ibm.commerce.command.CommandContext commandContext, java.sql.Timestamp when, java.lang.String redirectUrl)
      Schedules the CheckForBouncedEmail job to check bounced back e-mail.
      static void scheduleRetryForEmailActivity(java.lang.Integer emailPromotionId, java.lang.Integer storeId, short retryCount, java.lang.String host, com.ibm.commerce.command.CommandContext commandContext, java.sql.Timestamp when, java.lang.String redirectUrl)
      Schedules retry soft bounce e-mail for the e-mail activity
      static void setCommandContext(com.ibm.commerce.command.CommandContext cc)
      Sets the command context for this email activity
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • EmailDeliveryHelper

        public EmailDeliveryHelper()
    • Method Detail

      • getCommandContext

        public static com.ibm.commerce.command.CommandContext getCommandContext()
        Returns the command context used by this email activity.
        Returns:
        CommandContext
      • scheduleBounceJobForEmailActivity

        public static void scheduleBounceJobForEmailActivity(java.lang.Integer emailPromotionId,
                                                             java.lang.Integer storeId,
                                                             java.lang.String host,
                                                             com.ibm.commerce.command.CommandContext commandContext,
                                                             java.sql.Timestamp when,
                                                             java.lang.String redirectUrl)
                                                      throws com.ibm.commerce.exception.ECException
        Schedules the CheckForBouncedEmail job to check bounced back e-mail.
        Parameters:
        emailPromotionId - The ID of e-mail activity.
        storeId - The ID of the store to which the e-mail activity belongs to.
        host - The host of the scheduler job.
        commandContext - The command context passed into the scheduler job.
        when - The scheduled time.
        redirectUrl - The redirect URL.
        Throws:
        com.ibm.commerce.exception.ECException
      • scheduleRetryForEmailActivity

        public static void scheduleRetryForEmailActivity(java.lang.Integer emailPromotionId,
                                                         java.lang.Integer storeId,
                                                         short retryCount,
                                                         java.lang.String host,
                                                         com.ibm.commerce.command.CommandContext commandContext,
                                                         java.sql.Timestamp when,
                                                         java.lang.String redirectUrl)
                                                  throws com.ibm.commerce.exception.ECException
        Schedules retry soft bounce e-mail for the e-mail activity
        Parameters:
        emailPromotionId - the ID of the e-mail activity
        storeId - the store entity ID to which the e-mail activity belongs
        retryCount - the number of retries count
        host - the host name of the e-mail server
        commandContext - the command context
        when - the time that e-mail activity retry should be sent
        redirectUrl - the command used to resend the e-mail activity
        Throws:
        com.ibm.commerce.exception.ECException
      • setCommandContext

        public static void setCommandContext(com.ibm.commerce.command.CommandContext cc)
        Sets the command context for this email activity
        Parameters:
        cc - CommandContext