com.ibm.commerce.emarketing.commands

Class EmailPromotionCreateTaskCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, EmailPromotionCreateTaskCmd, EmailPromotionSaveTaskCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class EmailPromotionCreateTaskCmdImpl
    extends EmailPromotionSaveTaskCmdImpl
    implements EmailPromotionCreateTaskCmd
    The EmailPromotionCreateCmdImpl class implements the EmailPromotionCreateCmd interface to provide the task command that creates an e-mail promotion. Different implementations of this interface can be provided for different stores.
    • Field Detail

    • Constructor Detail

      • EmailPromotionCreateTaskCmdImpl

        public EmailPromotionCreateTaskCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Checks to see if the command is ready to execute.
        Overrides:
        isReadyToCallExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Returns:
        True super.isReadyToCallExecute() returns true and the e-mail message ID, job reference number, member group ID, name and store ID setters have been passed data.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Performs the execution of the command.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException - Thrown when EmailPromotionAccessBean cannot read data or EmailPromotionMemberGroupRelationAccessBean cannot write data successfully.