java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.tools.command.ToolsControllerCommandImpl
com.ibm.commerce.tools.optools.order.commands.CSROrderItemAddCmdImpl
This is the default implementation of the CSROrderItemAddCmd command.
This command calls the following Commands:
This command uses the following AccessBeans:
Field Summary | |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
static java.lang.String | ERRTASK_NAME Error handling viewname for this command. |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands.CSROrderItemAddCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CSROrderItemAddCmdImpl() |
Method Summary | |
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) Call CSROrderStatusChange command to change the status of the order and its order items. |
protected void | executeOrderItemAdd() Calls OrderItemAddCmd to add the order item into the order with the following parameters: catentryId quantity contractId shipModeId shipAddrId When a new order is created, this method will change the status of the new order and its order items to Edit state. |
java.util.Vector | getAddItems() Gets the items to be added. |
java.lang.String | getAddressId() Gets the address ID for which the order item is to be added. |
java.util.Vector | getItems() Gets the items in the order. |
java.util.Hashtable | getNLS() Returns NLS properties. |
java.lang.String | getOrderId() Gets the order ID for which the items are to be added. |
CommandContext | getOrgCmdContext() Gets the original command context. |
TypedProperty | getOrgReqProperties() Gets the original request properties. |
java.lang.String | getRedirectURL() Gets the redirect URL. |
AccessVector | getResources() Gets the access vector accessed by this command. |
java.lang.String | getShipModeId() Gets the shipping mode ID for which the order item is to be added. |
java.lang.String | getShopperId() Gets the shopper ID for which the order is to be added |
void | performExecute() Adds the items into the order. |
void | setAddItems(java.util.Vector newAddItems) Sets the items to be added to the order. |
void | setAddressId(java.lang.String newAddressId) Sets the address ID for which the items is to be added. |
void | setItems(java.util.Vector newItems) Sets the items of the order. |
protected void | setNLS(java.util.Hashtable newNLS) Sets NLS properties. |
void | setOrderId(java.lang.String newOrderId) Sets the order ID into which the items are added. |
void | setOrgCmdContext(CommandContext newOrgCmdContext) Sets the original command context. |
void | setOrgReqProperties(TypedProperty newOrgReqProperties) Sets the original request properties. |
void | setRedirectURL(java.lang.String newRedirectURL) Sets the redirect URL. |
void | setShipModeId(java.lang.String newShipModeId) Sets the shipping mode ID for which the items are added. |
void | setShopperId(java.lang.String newShopperId) Sets the shopper ID for which the items are added. |
void | validateParameters() Gets XMLObject from the GUI Notebook or Wizard and get ready to parse it. |
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl |
getViewInputProperties, setRequestProperties |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static java.lang.String ERRTASK_NAME
Constructor Detail |
public CSROrderItemAddCmdImpl()
Method Detail |
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 executeOrderItemAdd() throws ECException
public java.util.Vector getAddItems()
public java.lang.String getAddressId()
public java.util.Vector getItems()
public java.util.Hashtable getNLS()
public java.lang.String getOrderId()
public CommandContext getOrgCmdContext()
public TypedProperty getOrgReqProperties()
public java.lang.String getRedirectURL()
public AccessVector getResources() throws ECException
public java.lang.String getShipModeId()
public java.lang.String getShopperId()
public void performExecute() throws ECException
public void setAddItems(java.util.Vector newAddItems)
public void setAddressId(java.lang.String newAddressId)
public void setItems(java.util.Vector newItems)
protected void setNLS(java.util.Hashtable newNLS)
public void setOrderId(java.lang.String newOrderId)
public void setOrgCmdContext(CommandContext newOrgCmdContext)
public void setOrgReqProperties(TypedProperty newOrgReqProperties)
public void setRedirectURL(java.lang.String newRedirectURL)
public void setShipModeId(java.lang.String newShipModeId)
public void setShopperId(java.lang.String newShopperId)
public void validateParameters() throws ECApplicationException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.