java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.orderitems.commands.AddOrderItemComponentsCmdImpl
Creates the componets that are associated with a composite order item. It derives the component list in one of two ways
This command uses the following AccessBeans:
OrderItemAccessBean
CatalogEntryAccessBean
CatalogEntryShippingAccessBean
BaseItemAccessBean
ItemSpecificationAccessBean
OrderItemComponentAccessBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.orderitems.commands. AddOrderItemComponentsCmd |
defaultCommandClassName,
ERRTASK_NAME,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
AddOrderItemComponentsCmdImpl() |
Method Summary | |
---|---|
java.util.Vector |
getOutComponentList() Gets the output list of components that were created or updated. |
void |
performExecute() The main entry point of the command. |
void |
setComponents(java.lang.Long[] anCatentry) Set a list of Catalog Entries (components) that will be added to the OrderItem. |
void |
setConfigurationId(java.lang.String astrConfigurationId) Sets the Configuration id that is used to retrieve the components |
void |
setCurrency(java.lang.String astrCurrency) (Optional)Sets the currency for the prices of the components. |
void |
setOrderItemId(java.lang.Long anOrderItemId) (Optional) Set an OrderItem that the componets will be added to. |
void |
setPrices(java.math.BigDecimal[] anPrice) (Optional) Sets a list of prices for the components that will be added to the OrderItem. |
void |
setQuantity(java.lang.Double[] anQuantity) Set a list of quantities of each Catalog Entry (component) that will be added to the OrderItem. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public AddOrderItemComponentsCmdImpl()
Method Detail |
---|
public java.util.Vector getOutComponentList()
getOutComponentList
in interface
AddOrderItemComponentsCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException.
ECException
public void setComponents(java.lang.Long[] anCatentry)
setComponents
in interface
AddOrderItemComponentsCmd
anCatentry
- an array of input catalog entry
id.public void setConfigurationId(java.lang.String astrConfigurationId)
setConfigurationId
in interface
AddOrderItemComponentsCmd
astrConfigurationId
- the input configuration
id.public void setCurrency(java.lang.String astrCurrency)
setCurrency
in interface
AddOrderItemComponentsCmd
astrCurrency
- the input currencypublic void setOrderItemId(java.lang.Long anOrderItemId)
setOrderItemId
in interface
AddOrderItemComponentsCmd
anOrderItemId
- the input order item id.public void setPrices(java.math.BigDecimal[] anPrice)
setPrices
in interface
AddOrderItemComponentsCmd
anPrice
- an array of input price.public void setQuantity(java.lang.Double[] anQuantity)
setQuantity
in interface
AddOrderItemComponentsCmd
anQuantity
- an array of input quantity.