public class CSROrderItemSplitCmdImpl extends ToolsControllerCommandImpl implements CSROrderItemSplitCmd
This command calls the following Commands:
This command uses the following AccessBeans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | ERRTASK_NAME
Error handling view name for this command.
|
Constructor and Description |
---|
CSROrderItemSplitCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected TypedProperty | exceptionUtil(TypedProperty prop, java.lang.Exception ex, java.lang.String methodName, java.lang.String cmdName)
This method sets up the response property when an exception occurs.
|
void | executeCSROrderStatusChange(java.lang.String theOrderId, java.lang.String newStatus)
Calls CSROrderStatusChangeCmd command to change the status of the order and its order items.
|
protected void | executeOrderItemSplit()
This method calls OrderItemMoveCmd command to move the order items from one order to another order.
|
java.lang.String | getCustomerId()
Returns customer ID.
|
java.lang.String | getFromOrderId()
Returns the ID of the order which the order items are moved from.
|
java.lang.String | getNewOrderId()
Returns the ID of the newly created order.
|
java.util.Hashtable | getNLS()
Returns NLS properties.
|
java.util.Vector | getOrderItems()
Returns a vector of order items to be moved.
|
CommandContext | getOrgCmdContext()
Returns original command context.
|
java.lang.Integer | getOrgLangId()
Returns original language ID.
|
java.util.Locale | getOrgLocale()
Returns original locale.
|
TypedProperty | getOrgReqProperties()
Returns original request properties.
|
java.lang.String | getRedirectURL()
Returns redirect URL.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
java.lang.String | getToOrderId()
Returns ID of the order which the order items will be moved to.
|
void | performExecute()
This method performs the execution of moving the order items from one order to another order.
|
protected void | setCustomerId(java.lang.String newCustomerId)
Sets customer Id.
|
protected void | setFromOrderId(java.lang.String newFromOrderId)
Sets the order ID of the order items which will be moved from.
|
protected void | setNewOrderId(java.lang.String newNewOrderId)
Sets the order ID of the newly created order.
|
protected void | setNLS(java.util.Hashtable newNLS)
Sets NLS properties.
|
protected void | setOrderItems(java.util.Vector newOrderItems)
Sets order items which needs to be moved.
|
protected void | setOrgCmdContext(CommandContext newOrgCmdContext)
Sets original command context.
|
protected void | setOrgLangId(java.lang.Integer newOrgLangId)
Sets original language ID.
|
protected void | setOrgLocale(java.util.Locale newOrgLocale)
Sets original locale.
|
protected void | setOrgReqProperties(TypedProperty newOrgReqProperties)
Sets original request properties.
|
protected void | setRedirectURL(java.lang.String newRedirectURL)
Sets redirect URL.
|
protected void | setToOrderId(java.lang.String newToOrderId)
Sets order ID of the order items which will be moved to.
|
void | validateParameters()
Sets the NLS properties and parse the input XML parameters.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String ERRTASK_NAME
protected TypedProperty exceptionUtil(TypedProperty prop, java.lang.Exception ex, java.lang.String methodName, java.lang.String cmdName)
public void executeCSROrderStatusChange(java.lang.String theOrderId, java.lang.String newStatus) throws ECException
protected void executeOrderItemSplit() throws java.lang.Exception
If a new order is created, this command will change the status of the new order and its order items to 'E' state.
public java.lang.String getCustomerId()
public java.lang.String getFromOrderId()
public java.lang.String getNewOrderId()
public java.util.Hashtable getNLS()
public java.util.Vector getOrderItems()
public CommandContext getOrgCmdContext()
public java.lang.Integer getOrgLangId()
public java.util.Locale getOrgLocale()
public TypedProperty getOrgReqProperties()
public java.lang.String getRedirectURL()
public AccessVector getResources() throws ECException
public java.lang.String getToOrderId()
public void performExecute() throws ECException
protected void setCustomerId(java.lang.String newCustomerId)
protected void setFromOrderId(java.lang.String newFromOrderId)
protected void setNewOrderId(java.lang.String newNewOrderId)
protected void setNLS(java.util.Hashtable newNLS)
protected void setOrderItems(java.util.Vector newOrderItems)
protected void setOrgCmdContext(CommandContext newOrgCmdContext)
protected void setOrgLangId(java.lang.Integer newOrgLangId)
protected void setOrgLocale(java.util.Locale newOrgLocale)
protected void setOrgReqProperties(TypedProperty newOrgReqProperties)
protected void setRedirectURL(java.lang.String newRedirectURL)
protected void setToOrderId(java.lang.String newToOrderId)
public void validateParameters() throws ECApplicationException