com.ibm.commerce.order.commands

Class OrderScheduleCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderScheduleCmdImpl

        public OrderScheduleCmdImpl()
        Default Constructor
    • Method Detail

      • getAddJobCmd

        public AddJobCmd getAddJobCmd()
        Gets AddJob command instance.
        Returns:
        command
      • getHost

        public java.lang.String getHost()
        Gets the host name responsible for processing an order.
        Returns:
        host.
      • getInterval

        public java.lang.Integer getInterval()
        Gets the number of seconds between successive executions of this order.
        Returns:
        interval.
      • getOrderId

        public java.lang.Long getOrderId()
        Gets the order which needs to be processed as a recurring order.
        Returns:
        order id.
      • getOutOrderName

        public java.lang.String[] getOutOrderName()
        Gets the names of the name-value pairs to be added to the redirection URL. The value of each added name-value pair is the reference number of a scheduled order model.
        Returns:
        out order name.
      • getRecoveryAttempts

        public java.lang.Integer getRecoveryAttempts()
        Gets the number of times the job scheduler will retry processing the order should order processing failure occur.
        Returns:
        recovery attempts.
      • getRecoveryDelay

        public java.lang.Integer getRecoveryDelay()
        Gets the amount of time (in seconds) before order processing is retried in case of order processing failure.
        Returns:
        recovery delay.
      • getStartTime

        public java.lang.String getStartTime()
        The time at which the first execution of this order should occur.
        Returns:
        start time.
      • getUrl

        public java.lang.String getUrl()
        Gets redirection URL.
        Returns:
        URL.
      • getNotifyOrderSubmitted

        public java.lang.String getNotifyOrderSubmitted()
        Get the value of notifyOrderSubmitted flag.
        Returns:
        The value of notifyOrderSubmitted flag.
      • setNotifyOrderSubmitted

        public void setNotifyOrderSubmitted(java.lang.String notifyOrderSubmittedVal)
        Set the value of notifyOrderSubmitted flag.
        Parameters:
        notifyOrderSubmittedVal - The value of notifyOrderSubmitted flag.
      • getNotifyShopper

        public java.lang.String getNotifyShopper()
        Get the value of notifyShopper flag.
        Returns:
        The value of notifyShopper flag.
      • setNotifyShopper

        public void setNotifyShopper(java.lang.String notifyShopperVal)
        Set the value of notifyShopper flag.
        Parameters:
        notifyShopperVal - The value of notifyShopper flag.
      • getPurchaseOrderNumber

        public java.lang.String getPurchaseOrderNumber()
        This method gets the purchase order number.
        Returns:
        Returns the purchase order number.
      • getAccount

        public AccountAccessBean getAccount()
        This method gets the account.
        Returns:
        The account access bean if present.
      • reset

        public void reset()
        This method should be called after a command has been executed to reset its state variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setAddJobCmd

        public void setAddJobCmd(AddJobCmdImpl newAddJobCmd)
        Sets AddJob command instance.
        Parameters:
        newAddJobCmd - add job command.
      • setHost

        public void setHost(java.lang.String newHost)
        Sets the host name responsible for processing an order. Use this method when job scheduler instances are running on multiple hosts and processing this order needs to be restricted to a certain host.
        Specified by:
        setHost in interface OrderScheduleCmd
        Parameters:
        newHost - host.
      • setInterval

        public void setInterval(java.lang.Integer newInterval)
        Sets the number of seconds between successive executions of this order.
        Specified by:
        setInterval in interface OrderScheduleCmd
        Parameters:
        newInterval - java.lang.Integer - interval in seconds
      • setOrderId

        public void setOrderId(java.lang.Long newOrderId)
        Sets the order which needs to be processed as a recurring order.
        Specified by:
        setOrderId in interface OrderScheduleCmd
        Parameters:
        newOrderId - java.lang.Long - order identifier
      • setOutOrderName

        public void setOutOrderName(java.lang.String[] newOutOrderName)
        Sets the names of the name-value pairs to be added to the redirection URL. The value of each added name-value pair is the reference number of a scheduled order model.
        Specified by:
        setOutOrderName in interface OrderScheduleCmd
        Parameters:
        newOutOrderName - out order name.
      • setRecoveryAttempts

        public void setRecoveryAttempts(java.lang.Integer newRecoveryAttempts)
        Sets the number of times the job scheduler will retry processing the order should order processing failure occur. When setting the number of recovery attempts you must also set the recovery delay (setRecoveryDelay())
        Specified by:
        setRecoveryAttempts in interface OrderScheduleCmd
        Parameters:
        newRecoveryAttempts - java.lang.Integer - number of recovery attempts
      • setRecoveryDelay

        public void setRecoveryDelay(java.lang.Integer newRecoveryDelay)
        Sets the amount of time (in seconds) before order processing is retried in case of order processing failure. When setting the recovery delay you must also set the number of recovery attempts (setRecoveryAttempts())
        Specified by:
        setRecoveryDelay in interface OrderScheduleCmd
        Parameters:
        newRecoveryDelay - java.lang.Integer - number of seconds to delay between retrying to recover from order processing failure
      • setStartTime

        public void setStartTime(java.lang.String newStartTime)
        The time at which the first execution of this order should occur in the format YYYY:MM:DD:hh:mm:ss. Only hh:mm:ss is mandatory.
        Specified by:
        setStartTime in interface OrderScheduleCmd
        Parameters:
        newStartTime - java.lang.String - start time for order processing
      • setUrl

        public void setUrl(java.lang.String astrUrl)
        Sets redirection URL.
        Parameters:
        astrUrl - URL.
      • setPurchaseOrderNumber

        public void setPurchaseOrderNumber(java.lang.String strPO)
        This method sets the purchase order number.
        Parameters:
        strPO - The purchase order number to set.
      • setAccount

        public void setAccount(AccountAccessBean abAccount)
        This methods sets the account.
        Parameters:
        abAccount - The account access bean to be set.