com.ibm.commerce.order.commands

Class OrderTransferCheckCmdImpl

    • Constructor Detail

      • OrderTransferCheckCmdImpl

        public OrderTransferCheckCmdImpl()
    • Method Detail

      • setOrderIds

        public void setOrderIds(java.lang.Long[] orderIds)
        Sets the orderIds property of the command.
        Specified by:
        setOrderIds in interface OrderTransferCheckCmd
        Parameters:
        orderIds - the order reference number of the Order for which the confirmation will be checked.
      • setTransferMode

        public void setTransferMode(java.lang.String transferMode)
        Sets the transferMode property of the command.
        Specified by:
        setTransferMode in interface OrderTransferCheckCmd
        Parameters:
        transferMode - - 0 - order has been transferred without the payment information (shopping cart transfer). 1 - order has been transferred with the payment information (purchase order transfer).
      • setOkUrl

        public void setOkUrl(java.lang.String url)
        Sets the okURL property of the command.
        Specified by:
        setOkUrl in interface OrderTransferCheckCmd
        Parameters:
        url - - The redirection URL that is returned if transfer confirmation for specified oder have been received.
      • setTimeoutUrl

        public void setTimeoutUrl(java.lang.String url)
        Sets the timeoutURL property of the command.
        Specified by:
        setTimeoutUrl in interface OrderTransferCheckCmd
        Parameters:
        url - - The redirection URL that is returned if transfer confirmation has not yet been received, and a timeoutInterval+orderLastUpdateTime is bigger or equal to the current time.
      • setWaitUrl

        public void setWaitUrl(java.lang.String url)
        Sets the waitURL property of the command.
        Specified by:
        setWaitUrl in interface OrderTransferCheckCmd
        Parameters:
        url - - The redirection URL that is returned if transfer confirmation has not yet been received, and a timeoutInterval+orderLastUpdateTime is less than the current time.
      • setOutOkOrderIdNames

        public void setOutOkOrderIdNames(java.lang.String[] outOkOrderIdNames)
        Sets the outOkOrderIdNames property of the command.
        Specified by:
        setOutOkOrderIdNames in interface OrderTransferCheckCmd
        Parameters:
        outOkOrderIdNames - The names of name value pairs that should be added to the redirection URL. The values of the added name value pairs are the identifiers of the checked orders that have transfer confirmations.
      • setOutWaitOrderIdNames

        public void setOutWaitOrderIdNames(java.lang.String[] outWaitOrderIdNames)
        Sets the outWaitOrderIdNames property of the command.
        Specified by:
        setOutWaitOrderIdNames in interface OrderTransferCheckCmd
        Parameters:
        outWaitOrderIdNames - The names of name value pairs that should be added to the redirection URL. The values of the added name value pairs are the identifiers of the checked orders that do not yet have transfer confirmations. But whose timeoutInterval+orderLastUpdateTime values are not less than the current time.
      • setOutTimeoutOrderIdNames

        public void setOutTimeoutOrderIdNames(java.lang.String[] outTimeoutOrderIdNames)
        Sets the outTimeoutOrderIdNames property of the command.
        Specified by:
        setOutTimeoutOrderIdNames in interface OrderTransferCheckCmd
        Parameters:
        outTimeoutOrderIdNames - The names of name value pairs that should be added to the redirection URL. The values of the added name value pairs are the identifiers of the checked orders that do not yet have transfer confirmations. But whose timeoutInterval+orderLastUpdateTime values are less than the current time.
      • getResources

        public AccessVector getResources()
                                  throws ECException
        Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.

        Specified by:
        getResources in interface ECCommand
        Overrides:
        getResources in class AbstractECTargetableCommand
        Returns:
        AccessVector - a vector of resource action pairs
        Throws:
        ECException
      • reset

        public void reset()
        Resets the instance variables of the command. The reset() method will reset all instance variables. The command includes some output values that are accessible via getters. Make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • getErrorUrl

        public java.lang.String getErrorUrl()
        Gets the error url.
        Returns:
        Returns a String
      • setErrorUrl

        public void setErrorUrl(java.lang.String astrErrorUrl)
        Sets the error url.
        Specified by:
        setErrorUrl in interface OrderTransferCheckCmd
        Parameters:
        astrErrorUrl - The error url to set