com.ibm.commerce.tools.optools.returns.commands

Class CSRReturnItemAddCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • CSRReturnItemAddCmdImpl

        public CSRReturnItemAddCmdImpl()
    • Method Detail

      • getReturnItemsToBeAdded

        public java.util.Vector getReturnItemsToBeAdded()
        Gets list of items to be added to Return.
        Returns:
        set of hashtables where each hashtable represents data for a return item that will be passed to the ReturnItemAddCmd.
      • performExecute

        public void performExecute()
                            throws ECException
        Calls executeReturnItemAdd. In preparation, makes a copy of the command context and request properties. Sets up the redirect URL by putting the redirect URL parameter into the response property. Puts the returnId output parameter from implementation of ReturnItemAddCmd into the response property
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - If item is not successfully added to return
      • setReturnItemsToBeAdded

        public void setReturnItemsToBeAdded(java.util.Vector newReturnItemsToBeAdded)
        Sets list of items to be added to Return.
        Parameters:
        newReturnItemsToBeAdded - vector of hashtables where each hashtable represents data for a return item that will be passed to the ReturnItemAddCmd.