com.ibm.commerce.messaging.commands

Class ReleaseShipNotifyCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ReleaseShipNotifyCmd, 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 ReleaseShipNotifyCmdImpl
    extends TaskCommandImpl
    implements ReleaseShipNotifyCmd
    Sends an E-mail notification message for order release shipment. To switch to this implementation, corresponding rows with interface name that this class implements in CMDREG table must be updated with this class name.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • ReleaseShipNotifyCmdImpl

        public ReleaseShipNotifyCmdImpl()
        The ReleaseShipNotifyCmdImpl constructor calls its parents constructor.
    • Method Detail

      • getMessageSubjectParms

        public java.lang.Object[] getMessageSubjectParms()
        This method returns the parameters used for the notification message subject.
        Returns:
        parameters list in object array
      • getMessageType

        public java.lang.Integer getMessageType()
        Deprecated. This method is replaced by getMessageTypeName().
        This method returns the message type ID.
        Returns:
        the message type ID
        Throws:
        RemoteException
        CreateException
        NamingException
        FinderException
      • getMessageTypeName

        public java.lang.String getMessageTypeName()
        This method returns the message type name.
        Returns:
        the message type name
      • getOrderReleaseNum

        public java.lang.Integer getOrderReleaseNum()
        This method returns the order release number.
        Returns:
        the order release number
      • getOrderRn

        public java.lang.Long getOrderRn()
        This method returns the order reference number.
        Returns:
        java.lang.Long the order reference number
      • getRecipients

        public java.util.Vector getRecipients()
        This method returns the list of recipients' addresses for the notification message.
        Returns:
        java.util.Vector the list of recipients' addresses
      • performExecute

        public void performExecute()
                            throws ECException
        This is the core of the ReleaseShipNotify command. This method sends the notification message.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - Raised with ERR_REMOTE_EXCEPTION message when it encounters a RemoteException. Raised with ERR_CREATE_EXCEPTION message when it encounters a CreateException. Raised with ERR_GENERIC message when it encounters a NamingException. Raised with ERR_FINDER_EXCEPTION message when it encounters a FinderException.
      • sendNotification

        public void sendNotification(Messaging anMs)
                              throws ECSystemException
        This method sends the notification message to the shopper. If the notification ID of the order is not null, the notification ID will be used. Otherwise, the member ID of the order will be used.
        Parameters:
        anMs - the Messaging object used in this command
        Throws:
        ECSystemException
      • sendNotification

        public void sendNotification(Messaging anMs,
                                     java.util.Enumeration anenRecipients)
                              throws ECSystemException
        This method sends the notification message to all the recipients set by the caller of the task command. One message will be created for each recipient address stored in the Enumeration object.
        Parameters:
        anMs - the Messaging object.
        anenRecipients - The Enumeration object containing one or more addresses.
        Throws:
        ECSystemException
      • setMessageSubjectParms

        public void setMessageSubjectParms(java.lang.Object[] newMessageSubjectParams)
        This method sets the parameters for notification message subject.
        Specified by:
        setMessageSubjectParms in interface ReleaseShipNotifyCmd
        Parameters:
        newMessageSubjectParams - the list of parameters used for the subject
      • setOrderReleaseNum

        public void setOrderReleaseNum(java.lang.Integer anOrderReleaseNum)
        This method sets the order release number used in this command.
        Specified by:
        setOrderReleaseNum in interface ReleaseShipNotifyCmd
        Parameters:
        anOrderReleaseNum - the order release number
      • setOrderRn

        public void setOrderRn(java.lang.Long anOrderRn)
        This method sets the order reference number used in this command.
        Specified by:
        setOrderRn in interface ReleaseShipNotifyCmd
        Parameters:
        anOrderRn - the order reference number
      • setRecipients

        public void setRecipients(java.util.Vector newRecipients)
        This method sets the list of recipients' addresses for the notification message.
        Specified by:
        setRecipients in interface ReleaseShipNotifyCmd
        Parameters:
        newRecipients - the vector containing the list of recipients' addresses