public class AbstractOrderCalculateExternalCmdImpl extends ControllerCommandImpl implements OrderCalculateExternalCmd, OrderCalculateServiceConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
protected java.lang.String[] | iArrayAdjExternalOrderItemID
External order item IDs with manual adjustment
|
protected java.lang.String[] | iArrayCatentryId
Input parameter: catEntryId in an Array.
|
protected java.lang.String[] | iArrayConfigurationId
Input parameter: configurationId in an Array.
|
protected java.lang.String[] | iArrayCorrelationGroup
The correlation group
|
protected java.lang.String[] | iArrayCurrency
Input parameter: currency.
|
protected java.lang.String[] | iArrayExternalOrderItemId
Input parameter: externalRrderItemId.
|
protected java.lang.String[] | iArrayIsFreeGift
Whether is free gift
|
protected java.lang.String[] | iArrayIsOverrideExistingAdj
IsOverrideExistingAdjustment flag
|
protected java.lang.String[] | iArrayIsPriceForInformationOnly
Whether is price for information only
|
protected java.lang.String[] | iArrayIsPriceOverride
Whether is price override
|
protected java.lang.String[] | iArrayManualAdjApplyAmount
Manual adjustment apply amount
|
protected java.lang.String[] | iArrayManualAdjApplyPolicy
Manual adjustment apply policy
|
protected java.lang.String[] | iArrayManualAdjCalCodeID
Calculation code IDs for manual adjustment.
|
protected java.lang.String[] | iArrayManualAdjOrderItemID
Order Item IDs with manual adjustment
|
protected java.lang.Object[] | iArrayOrderItemComponent
Array of order item components.
|
protected java.lang.String[] | iArrayOrderItemId
Input parameter: orderItemId in an Array.
|
protected java.lang.String[] | iArrayOrderItemPrice
Input parameter: orderItemPrice.
|
protected java.lang.String[] | iArrayOrderItemShippingCarrier
order item shipping carrier array
|
protected java.lang.String[] | iArrayOrderItemShippingCharge
order item shipping charge array
|
protected java.lang.String[] | iArrayOrderItemShippingModeCode
order item shipping mode code array
|
protected java.lang.String[] | iArrayPartnumber
Input parameter: partNumber in an Array.
|
protected java.lang.String[] | iArrayQuantity
Input parameter: quantity in an Array.
|
protected java.lang.String[] | iArrayUnitPrice
Input parameter: UnitPrice.
|
protected java.lang.String[] | iExternalOrderItemId
Input parameter: externalOrderItemId.
|
protected java.util.Hashtable | ihshCatentry_id
Input parameter: catEntryId in HashTable.
|
protected java.util.Hashtable | ihshComponentCurrency
Input parameter: component currency
|
protected java.util.Hashtable | ihshComponentPartNumber
Input parameter: component part number
|
protected java.util.Hashtable | ihshComponentQuantity
Input parameter: component quantity
|
protected java.util.Hashtable | ihshComponentUnitPrice
Input parameter: component unit price
|
protected java.util.Hashtable | ihshConfigurationId
Input parameter: configurationId in HashTable.
|
protected java.util.Hashtable | ihshCorrelationGroup
Input parameter: correlationGroup in HashTable.
|
protected java.util.Hashtable | ihshCurrency
Input parameter: currency in HashTable.
|
protected java.util.Hashtable | ihshExternalOrderItemId
Input parameter: external order item id in HashTable.
|
protected java.util.Hashtable | ihshIsFreeGift
Input parameter: isFreeGift flag in HashTable.
|
protected java.util.Hashtable | ihshIsPriceForInformationOnly
Input parameter: IsPriceForInformationOnly flags in HashTable.
|
protected java.util.Hashtable | ihshIsPriceOverride
Input parameter: IsPriceOverride in HashTable.
|
protected java.util.Hashtable | ihshOrderitem_id
Input parameter: orderItemId in HashTable.
|
protected java.util.Hashtable | ihshOrderItemPrice
Input parameter: order item price in HashTable.
|
protected java.util.Hashtable | ihshOrderItemShippingCarrier
Input parameter: order item shipping carrier in HashTable.
|
protected java.util.Hashtable | ihshOrderItemShippingCharge
Input parameter: order item shipping charge in HashTable.
|
protected java.util.Hashtable | ihshOrderItemShippingModeCode
Input parameter: order item shipping mode code in HashTable.
|
protected java.util.Hashtable | ihshPart_number
Input parameter: partNumber in HashTable.
|
protected java.util.Hashtable | ihshQuantity
Input parameter: quantity in HashTable.
|
protected java.util.Hashtable | ihshUnitPrice
Input parameter: UnitPrice in HashTable.
|
Constructor and Description |
---|
AbstractOrderCalculateExternalCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | calculateOrder(TypedProperty property)
Call order calculation command.
|
protected void | checkAndCSRLock(java.lang.Long orderId)
This method checks and locks the resource.
|
protected void | checkAndUnlock(java.lang.Long orderId)
This method checks and unlocks the resource.
|
protected void | clearOrder(TypedProperty aRequestProperties)
This method is used to clear the charges of the order
|
TypedProperty | getCalculationProperty()
Get calculationProperty.
|
java.lang.String | getCalculationUsageIds()
Get CalculationUsageIds.
|
java.lang.Integer | getCatentryCount()
Get catalog entry count.
|
java.lang.String | getContractId()
Get contractId.
|
java.lang.String | getCurrency()
Get currency.
|
java.lang.String | getExternalOrderId()
Get external order id.
|
java.util.HashMap | getHshOrderItemId2CorrelationGroupMap()
This method returns the map of of the OrderItems.
|
java.util.HashMap | getHshPartNumber2CorrelationGroupMap()
This method returns the map of of free gift before performing order calculation.
|
java.lang.String | getMemberId()
Get member id.
|
OrderAccessBean | getOrderAB()
Get order access bean.
|
java.lang.Boolean | getOrderExisting()
Get order existing flag.
|
java.lang.String | getOrderId()
Get order id.
|
java.util.Map | getOrderItem2IsPriceInformationOnlyMap()
Get orderItem2IsPriceInformationOnlyMap.
|
protected OrderLockingHelper | getOrderLockingHelper()
This method gets the com.ibm.commerce.order.utils.OrderLockingHelper instance.
|
java.lang.String | getOrderStoreId()
Get order store id.
|
java.lang.String | getOrderType()
Get order type.
|
java.lang.String | getPaymentMethodName()
Get the name of the payment method.
|
java.util.Set | getPriceInformationOnlySet()
Get priceInformationOnlySet.
|
java.lang.String | getPriceUpdateFlag()
Get price update flag.
|
java.lang.String | getPricingDate()
Get the pricing date.
|
java.lang.String[] | getPromotionCodes()
Get the array of promotion code.
|
java.util.List | getPromotionCodeTypeList()
Get the list of object of PromotionCodeType
|
TypedProperty | getRequestProperties()
Get request property.
|
TypedProperty | getResponseProperties()
Get response property.
|
java.lang.String | getShippingModeId()
Get shipping mode id.
|
protected void | outputResult()
Output order calculation result.
|
void | performExecute()
This method executes the business logic of this command implementation.
|
protected void | postOrderCalculation()
This method is to perform post operations after calculating order.
|
protected CommandContext | prepareCommandContext()
This method is used to prepare command context.
|
protected void | prepareDataForCalculation()
Prepare data in the database for calculation.
|
protected void | prepareParameterForCalculation()
Prepare related parameters for order calculation.
|
void | setCalculationProperty(TypedProperty iCalculationProperty)
Set calculationProperty.
|
void | setCalculationUsageIds(java.lang.String iCalculationUsageIds)
Set CalculationUsageIds.
|
void | setCatentryCount(java.lang.Integer iCatentryCount)
Set catalog entry count.
|
void | setContractId(java.lang.String iContractId)
Set contractId.
|
void | setCurrency(java.lang.String iCurrency)
Set currency.
|
void | setExternalOrderId(java.lang.String iExternalOrderId)
Set external order id.
|
void | setHshOrderItemId2CorrelationGroupMap(java.util.HashMap ihshOrderItemId2CorrelationGroupMap)
This method sets the map of the OrderItems.
|
void | setHshPartNumber2CorrelationGroupMap(java.util.HashMap ihshPartNumber2CorrelationGroupMap)
This method sets the map of free gift before performing order calculation.
|
void | setMemberId(java.lang.String iMemberId)
Set memberId.
|
void | setOrderAB(OrderAccessBean iOrderAB)
Set order access bean.
|
void | setOrderExisting(java.lang.Boolean iOrderExisting)
Set order existing flag.
|
void | setOrderId(java.lang.String iOrderId)
Set order id.
|
void | setOrderItem2IsPriceInformationOnlyMap(java.util.Map iOrderItem2IsPriceInformationOnlyMap)
Set orderItem2IsPriceInformationOnlyMap.
|
void | setOrderItemRequestParameters()
This method sets the parameters for order item.
|
void | setOrderRequestParameters()
This method sets the parameters for order.
|
protected void | setOrderStatus(java.lang.String status)
Set order status and its order items status.
|
void | setOrderStoreId(java.lang.String iOrderStoreId)
Set order store id.
|
void | setOrderType(java.lang.String iOrderType)
Set order type.
|
void | setPaymentMethodName(java.lang.String paymentMethod)
Set the name of the payment method.
|
void | setPriceInformationOnlySet(java.util.Set iPriceInformationOnlySet)
Set priceInformationOnlySet.
|
void | setPriceUpdateFlag(java.lang.String iPriceUpdateFlag)
Set price update flag.
|
void | setPricingDate(java.lang.String date)
Set the pricing date.
|
void | setPromotionCodeTypeList(java.util.List promotionCodeTypeList)
Set the list of object of PromotionCodeType
|
void | setRequestProperties(TypedProperty iRequestProperties)
Set request property.
|
void | setResponseProperties(TypedProperty iResponseProperties)
Set response property.
|
void | setShippingModeId(java.lang.String iShippingModeId)
Set shipping mode id.
|
void | setsPromotionCodes(java.lang.String[] arrayPromotionCode)
Set the array of promotion code.
|
void | validateParameters()
This method verifies the input parameters.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
protected java.lang.String[] iArrayOrderItemId
protected java.util.Hashtable ihshOrderitem_id
protected java.lang.String[] iArrayCatentryId
protected java.util.Hashtable ihshCatentry_id
protected java.lang.String[] iArrayExternalOrderItemId
protected java.util.Hashtable ihshExternalOrderItemId
protected java.lang.String[] iArrayPartnumber
protected java.util.Hashtable ihshPart_number
protected java.lang.String[] iArrayQuantity
protected java.util.Hashtable ihshQuantity
protected java.lang.String[] iExternalOrderItemId
protected java.lang.String[] iArrayCurrency
protected java.util.Hashtable ihshCurrency
protected java.lang.String[] iArrayUnitPrice
protected java.util.Hashtable ihshUnitPrice
protected java.lang.String[] iArrayOrderItemPrice
protected java.util.Hashtable ihshOrderItemPrice
protected java.lang.String[] iArrayManualAdjCalCodeID
protected java.lang.String[] iArrayManualAdjOrderItemID
protected java.lang.String[] iArrayAdjExternalOrderItemID
protected java.lang.String[] iArrayIsOverrideExistingAdj
protected java.lang.String[] iArrayManualAdjApplyPolicy
protected java.lang.String[] iArrayManualAdjApplyAmount
protected java.lang.String[] iArrayIsFreeGift
protected java.util.Hashtable ihshIsFreeGift
protected java.lang.String[] iArrayCorrelationGroup
protected java.util.Hashtable ihshCorrelationGroup
protected java.lang.String[] iArrayConfigurationId
protected java.util.Hashtable ihshConfigurationId
protected java.util.Hashtable ihshComponentPartNumber
protected java.util.Hashtable ihshComponentQuantity
protected java.util.Hashtable ihshComponentUnitPrice
protected java.util.Hashtable ihshComponentCurrency
protected java.lang.Object[] iArrayOrderItemComponent
protected java.lang.String[] iArrayIsPriceForInformationOnly
protected java.util.Hashtable ihshIsPriceForInformationOnly
protected java.lang.String[] iArrayIsPriceOverride
protected java.util.Hashtable ihshIsPriceOverride
protected java.util.Hashtable ihshOrderItemShippingCharge
protected java.lang.String[] iArrayOrderItemShippingCharge
protected java.util.Hashtable ihshOrderItemShippingModeCode
protected java.lang.String[] iArrayOrderItemShippingModeCode
protected java.util.Hashtable ihshOrderItemShippingCarrier
protected java.lang.String[] iArrayOrderItemShippingCarrier
public AbstractOrderCalculateExternalCmdImpl()
public java.util.List getPromotionCodeTypeList()
public void setPromotionCodeTypeList(java.util.List promotionCodeTypeList)
public java.lang.String[] getPromotionCodes()
public void setsPromotionCodes(java.lang.String[] arrayPromotionCode)
public java.lang.String getPricingDate()
public void setPricingDate(java.lang.String date)
public java.util.HashMap getHshPartNumber2CorrelationGroupMap()
public void setHshPartNumber2CorrelationGroupMap(java.util.HashMap ihshPartNumber2CorrelationGroupMap)
public java.util.HashMap getHshOrderItemId2CorrelationGroupMap()
public void setHshOrderItemId2CorrelationGroupMap(java.util.HashMap ihshOrderItemId2CorrelationGroupMap)
public java.lang.String getOrderId()
public void setOrderId(java.lang.String iOrderId)
public java.lang.String getCalculationUsageIds()
public void setCalculationUsageIds(java.lang.String iCalculationUsageIds)
public java.lang.String getOrderStoreId()
public void setOrderStoreId(java.lang.String iOrderStoreId)
public java.lang.String getPriceUpdateFlag()
public void setPriceUpdateFlag(java.lang.String iPriceUpdateFlag)
public TypedProperty getRequestProperties()
public void setRequestProperties(TypedProperty iRequestProperties)
public TypedProperty getResponseProperties()
public void setResponseProperties(TypedProperty iResponseProperties)
public OrderAccessBean getOrderAB()
public void setOrderAB(OrderAccessBean iOrderAB)
public java.lang.String getPaymentMethodName()
public void setPaymentMethodName(java.lang.String paymentMethod)
public java.lang.Integer getCatentryCount()
public void setCatentryCount(java.lang.Integer iCatentryCount)
public java.lang.String getMemberId()
public void setMemberId(java.lang.String iMemberId)
public java.lang.String getOrderType()
public void setOrderType(java.lang.String iOrderType)
public java.lang.String getContractId()
public void setContractId(java.lang.String iContractId)
public java.lang.String getExternalOrderId()
public void setExternalOrderId(java.lang.String iExternalOrderId)
public java.lang.Boolean getOrderExisting()
public void setOrderExisting(java.lang.Boolean iOrderExisting)
public java.lang.String getShippingModeId()
public void setShippingModeId(java.lang.String iShippingModeId)
public java.lang.String getCurrency()
public void setCurrency(java.lang.String iCurrency)
public TypedProperty getCalculationProperty()
public void setCalculationProperty(TypedProperty iCalculationProperty)
public java.util.Set getPriceInformationOnlySet()
public void setPriceInformationOnlySet(java.util.Set iPriceInformationOnlySet)
public java.util.Map getOrderItem2IsPriceInformationOnlyMap()
public void setOrderItem2IsPriceInformationOnlyMap(java.util.Map iOrderItem2IsPriceInformationOnlyMap)
public void setOrderItemRequestParameters() throws ECException
public void setOrderRequestParameters() throws ECException
public void validateParameters() throws ECException
protected OrderLockingHelper getOrderLockingHelper()
protected void checkAndCSRLock(java.lang.Long orderId) throws ECException
protected void checkAndUnlock(java.lang.Long orderId) throws ECException
public void performExecute() throws ECException
protected void setOrderStatus(java.lang.String status) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
protected void prepareDataForCalculation() throws ECException
protected void prepareParameterForCalculation() throws ECException
protected void calculateOrder(TypedProperty property) throws ECException
protected void clearOrder(TypedProperty aRequestProperties) throws ECException
protected CommandContext prepareCommandContext()
protected void postOrderCalculation() throws ECException
protected void outputResult()