Class SendAnnouncementCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, SendAnnouncementCmd,,,,,,

    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 command which interfaces with the outbound messaging system.
    See Also:
    Serialized Form
    • Field Detail


        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 command, passing the required parameters to send the email
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
      • setSubject

        public void setSubject(java.lang.String aSubject)
        Sets the subject to be used in the email
        Specified by:
        setSubject in interface SendAnnouncementCmd
        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
        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
        evtTypeId - The event type identifier
      • setCatalogId

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