com.ibm.commerce.orderitems.commands
Interface AddOrderItemComponentsCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
AddOrderItemComponentsCmdImpl

public interface AddOrderItemComponentsCmd
extends TaskCommand

Creates the componets that are associated with a composite order item. It derives the component list in one of two ways

Only one of the ConfigurationId and the Components are required. Quantity is only required if a component list is provided If the componets are explicitly set, then they are used, otherwise, they are dervied from the ConfigurationId.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String ERRTASK_NAME
           
static java.lang.String NAME
           
 
Method Summary
 java.util.Vector getOutComponentList()
          Gets the output list of components that were created or updated.
 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 interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME

NAME

public static final java.lang.String NAME
Method Detail

getOutComponentList

public java.util.Vector getOutComponentList()
Gets the output list of components that were created or updated.

setComponents

public void setComponents(java.lang.Long[] anCatentry)
Set a list of Catalog Entries (components) that will be added to the OrderItem.

setConfigurationId

public void setConfigurationId(java.lang.String astrConfigurationId)
Sets the configuration id that is used to retrieve the components

setCurrency

public void setCurrency(java.lang.String astrCurrency)
(Optional)Sets the currency for the prices of the components.

setOrderItemId

public void setOrderItemId(java.lang.Long anOrderItemId)
(Optional) Set an OrderItem that the componets will be added to.

setPrices

public void setPrices(java.math.BigDecimal[] anPrice)
(Optional) Sets a list of prices for the components that will be added to the OrderItem.

setQuantity

public void setQuantity(java.lang.Double[] anQuantity)
Set a list of quantities of each Catalog Entry (component) that will be added to the OrderItem.