public abstract class OrderConfigurationBaseCmdImpl extends ControllerCommandImpl implements OrderConfigurationUpdateCmd, OrderConfigurationAddCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected java.util.Hashtable | ihshCatentry_id
Dynamic kit catEntryIds
|
protected java.util.Hashtable | ihshComp_catentryId
Components catEntryIds
|
protected java.util.Hashtable | ihshComp_priceLocks
Components priceLocks
|
protected java.util.Hashtable | ihshComp_prices
Components prices
|
protected java.util.Hashtable | ihshComp_quantity
Components quantities
|
protected java.util.Hashtable | ihshConfiguration
Dynamic kit configurations
|
protected java.util.Hashtable | ihshDk_price
dk price
|
protected java.util.Hashtable | ihshDk_priceLock
dk priceLock
|
protected java.util.Hashtable | ihshOrderItem_id
Order item Ids
|
protected java.util.Hashtable | ihshPartNumber
Dynamic kit part number
|
protected java.util.Hashtable | ihshQuantity
Dynamic kit quantities
|
protected java.util.Vector | nonBuyableCatentryIds
The ids of catalog entries which are not buyable
|
protected java.lang.String[] | outputOrderIds
The output order ids
|
protected java.lang.String[] | outputOrderItemIds
The output order item ids
|
Constructor and Description |
---|
OrderConfigurationBaseCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Hashtable | addToOICompList()
This method calls DynamicKitConfigurationAddCmd to store components of each dynamic kit.
|
protected void | checkPDKComponentEntitlement(com.ibm.commerce.catalog.facade.datatypes.CatalogEntryViewType catalogEntry)
Checks whether the user is entitled to buy the predefined dynamic kit.
|
protected java.lang.String | generateConfigurationId()
This method generates a unique configuration id.
|
protected java.lang.String | getContractId()
This method gets the contract Id from the request, if it doesn't exist, get it from the current trading Ids.
|
protected java.lang.String | getContractIdFromCurrentTradingAgreementIds()
This method gets the contract Id from the current trading agreements list.
|
java.util.Vector | getNonBuyableCatentryIds()
This method returns a vector contains the identifiers of CatalogEntries that are not buyable.
|
java.lang.String[] | getOrderIds()
This method returns a list of order ids which are touched or created by the command.
|
java.lang.String[] | getOrderItemIds()
This method returns a list of orderitem ids which are touched or created by the command.
|
protected void | parseConfigurationXML()
This method calls ParseDynamicKitConfigurationCmd to parse configuration XML.
|
protected java.lang.String | regenerateBOM(java.lang.String configXML)
This method calls RegenerateConfigurationBOMCmd to generate new BOM XML based on the old BOM XML
|
void | reset()
This method resets all instance variables.
|
protected void | resolveComponentsOfPreconfiguration()
This method resolves predefined components of each dynamic kit.
|
void | setCatEntryId(java.util.Hashtable catEntryId)
This method sets the Catalog Entry IDs of the dynamic kits.
|
void | setConfiguration(java.util.Hashtable configuration)
This method sets the configurations of the dynamic kits.
|
void | setOrderItemId(java.util.Hashtable orderItemId)
This method sets the order item Ids.
|
void | setQuantity(java.util.Hashtable quantity)
This method sets the quantities of the dynamic kits.
|
public static final java.lang.String COPYRIGHT
protected java.util.Hashtable ihshCatentry_id
protected java.util.Hashtable ihshPartNumber
protected java.util.Hashtable ihshConfiguration
protected java.util.Hashtable ihshQuantity
protected java.util.Hashtable ihshOrderItem_id
protected java.util.Hashtable ihshComp_catentryId
protected java.util.Hashtable ihshComp_quantity
protected java.util.Hashtable ihshComp_prices
protected java.util.Hashtable ihshComp_priceLocks
protected java.util.Hashtable ihshDk_price
protected java.util.Hashtable ihshDk_priceLock
protected java.lang.String[] outputOrderItemIds
protected java.lang.String[] outputOrderIds
protected java.util.Vector nonBuyableCatentryIds
public java.lang.String[] getOrderIds()
public java.lang.String[] getOrderItemIds()
public java.util.Vector getNonBuyableCatentryIds()
public void setCatEntryId(java.util.Hashtable catEntryId)
public void setConfiguration(java.util.Hashtable configuration)
public void setQuantity(java.util.Hashtable quantity)
public void setOrderItemId(java.util.Hashtable orderItemId)
protected void resolveComponentsOfPreconfiguration() throws ECException
protected java.lang.String regenerateBOM(java.lang.String configXML) throws ECException
protected java.lang.String getContractId() throws ECApplicationException
protected java.lang.String getContractIdFromCurrentTradingAgreementIds() throws ECException
protected void parseConfigurationXML() throws ECException
protected java.util.Hashtable addToOICompList() throws ECException
protected java.lang.String generateConfigurationId()
public void reset()
protected void checkPDKComponentEntitlement(com.ibm.commerce.catalog.facade.datatypes.CatalogEntryViewType catalogEntry) throws ECException