com.ibm.commerce.tools.optools.order.commands
Interface CSROrderItemSplitCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, ToolsControllerCommand
All Known Implementing Classes:
CSROrderItemSplitCmdImpl

public interface CSROrderItemSplitCmd
extends ToolsControllerCommand

Moves order items from one order to the other.

Behavior

Parameters

XML
An input xml_string that contains the details of the order items which will be moved.
 Example xml_string:
  <?xml version="1.0" encoding "UTF-8">
    <order>
      <customerId>  20000 </customerId>
    </order>
    <orderItem>
      <orderId> 10002   </orderId>
      <orderItemId> 10110   </orderItemId>
    </orderItem>
    <orderItem>
      <orderId> 10002   </orderId>
      <orderItemId> 10220   </orderItemId>
    </orderItem>
  </xml>  
toOrderId
The ID of the order which the order items will be moved to. If the value of this parameter is null or empty, this command will create a new order and move these order items to this new order.
fromOrderId
Only those order items of the order with this order ID need to be moved.
URL
The URL to be called when the command completes successfully.

Response Parameter:

secondOrderId
The ID of the new order created. This will only happen when the value of the input parameter toOrderId is null or empty.

Exception Conditions

Throws all exceptions that thrown by CSROrderStatusChangeCmd and OrderItemMoveCmd.

Error View:


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.String defaultCommandClassName
          The default implementation class.
static java.lang.String NAME
          The name of this command.
 
Methods inherited from interface com.ibm.commerce.command. ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command. AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 

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

NAME

public static final java.lang.String NAME
The name of this command.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class.
See Also:
Constant Field Values