Class SendGiftRegistryConfirmationCmdImpl

  • All Implemented Interfaces:
    BusinessObjectDocumentCmd,, ECCommand, ECTargetableCommand, TaskCommand, SendGiftRegistryConfirmationCmd,,,,,,

    public class SendGiftRegistryConfirmationCmdImpl
    extends BusinessObjectDocumentCmdImpl
    implements SendGiftRegistryConfirmationCmd
    Sends an email message informing the registrants of the registry being created successfully.
    The email is sent to the Registrant and not the Co-Registrant

    The ConfirmBOD returns null on success and an exception is thrown on error.
    On error, a ECApplicationException is thrown with message:
    See Also:
    Serialized Form
    • 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 class name of this class
    • Constructor Detail

      • SendGiftRegistryConfirmationCmdImpl

        public SendGiftRegistryConfirmationCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        The performExecute() sends an email message to inform the registrants of the registry being created successfully.
        This method first checks the configuration file to see if messaging is enabled. If it is set to "false", an email will not be sent. It looks for the path: GiftRegistry/EmailMessages/EnableGiftRegistryCreateSuccessEmail
        This task loops through all the GiftRegistryVO's in the input UpdateGiftRegistryBOD and issues off an email for each. It puts a GiftRegistryVO in the request of each JSP called.

        Messages are sent using the SendMsgCmd command and are sent transacted.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
      • getMessageType

        public java.lang.String getMessageType()
        Returns the message type to be used with the message being sent. Default message type is: GiftRegistryConfirmationNotify
      • setMessageType

        public void setMessageType(java.lang.String string)
        Sets the message type to be used with the message being sent. Default is: GiftRegistryConfirmationNotify
        string -