com.ibm.commerce.giftcenter.commands

Class SendAnnouncementCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, SendAnnouncementCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class SendAnnouncementCmdImpl
    extends TaskCommandImpl
    implements SendAnnouncementCmd
    The default implementation of the SendAnnouncementCmd interface. Sends the announcement as an email to the people whose email addresses are mentioned in the recipients list of the announcement. The command internally invokes the com.ibm.commerce.messaging.commands.SendMsgCmd command which interfaces with the outbound messaging system.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SendAnnouncementCmdImpl

        public SendAnnouncementCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Performs the logic to send the announcement as email. Invokes the com.ibm.commerce.messaging.commands.SendMsgCmd command, passing the required parameters to send the email
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setSubject

        public void setSubject(java.lang.String aSubject)
        Sets the subject to be used in the email
        Specified by:
        setSubject in interface SendAnnouncementCmd
        Parameters:
        aSubject - The subject text to be used in the email
      • setTemplate

        public void setTemplate(java.lang.String aTemplate)
        Sets the template to be used in the email announcement
        Specified by:
        setTemplate in interface SendAnnouncementCmd
        Parameters:
        aTemplate - The template to be used in the email announcement
      • setEventTypeId

        public void setEventTypeId(java.lang.Integer evtTypeId)
        Sets the event type identifier of the event
        Specified by:
        setEventTypeId in interface SendAnnouncementCmd
        Parameters:
        evtTypeId - The event type identifier
      • setCatalogId

        public void setCatalogId(java.lang.String aCatalogId)
        Sets the catalog identifier
        Specified by:
        setCatalogId in interface SendAnnouncementCmd
        Parameters:
        aCatalogId - The catalog identifier