public class CSROrderItemAddCmdImpl extends ToolsControllerCommandImpl implements CSROrderItemAddCmd
CSROrderItemAddCmd
command.
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.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CSROrderItemAddCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
executeCSROrderStatusChange(java.lang.String theOrderId,
java.lang.String newStatus)
Call CSROrderStatusChange command to change the status of the order and its order items.
|
java.lang.Long |
getActiveOrganizationId()
Get the organization id that the customer is shopping under.
|
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 |
setActiveOrganizationId(java.lang.Long long1)
Set the active organization id for this command.
|
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 are to be added.
|
void |
setItems(java.util.Vector newItems)
Sets the items of the order.
|
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.
|
getViewInputProperties, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static java.lang.String ERRTASK_NAME
public void executeCSROrderStatusChange(java.lang.String theOrderId, java.lang.String newStatus) throws ECException
newStatus
- The status of the order and its order items.theOrderId
- The ID of the order.ECException
- if order status can not be changed.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
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- If the resource can not be retrieved.public java.lang.String getShipModeId()
public java.lang.String getShopperId()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If the item cannot be added.public void setAddItems(java.util.Vector newAddItems)
newAddItems
- The vector of items to be added to the order.public void setAddressId(java.lang.String newAddressId)
newAddressId
- The address ID.public void setItems(java.util.Vector newItems)
newItems
- The vector of items in the order.public void setOrderId(java.lang.String newOrderId)
newOrderId
- The order ID.public void setOrgCmdContext(CommandContext newOrgCmdContext)
newOrgCmdContext
- The original command context.public void setOrgReqProperties(TypedProperty newOrgReqProperties)
newOrgReqProperties
- The original request properties.public void setRedirectURL(java.lang.String newRedirectURL)
newRedirectURL
- The redirect URL.public void setShipModeId(java.lang.String newShipModeId)
newShipModeId
- The shipping mode ID.public void setShopperId(java.lang.String newShopperId)
newShopperId
- The shopper ID.public void validateParameters() throws ECApplicationException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If the XML does not contain the required parameters.public java.lang.Long getActiveOrganizationId()
public void setActiveOrganizationId(java.lang.Long long1)
long1
- the organization id that the customer is shopping under.