com.ibm.commerce.component.giftregistry.commands

Class SendGiftRegistryConfirmationCmdImpl

  • All Implemented Interfaces:
    BusinessObjectDocumentCmd, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, SendGiftRegistryConfirmationCmd, 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 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:
    • GiftRegistryMessage._ERR_GIFT_REGISTRY_FAILED_TO_SEND_EMAIL_MESSAGE
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • CLASSNAME

        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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • getMessageType

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

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