public class GetContractPriceListCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements GetContractPriceListCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
NAME
Constructor and Description |
---|
GetContractPriceListCmdImpl() |
Modifier and Type | Method and Description |
---|---|
MonetaryAmount |
getApplicableTradingUnitPrice()
Returns the unit price of a catentry that were determined for each of the
applied trading agreements.
|
java.lang.Long |
getTcId()
Returns the id of the output T&C id which was associated with the offer
that supplied the price.
|
java.lang.Long |
getTradingId()
Returns the trading id that used to calculate the contract price.
|
void |
performExecute() |
void |
setCatEntryId(java.lang.Long catId)
Sets the catEntry id for command calculation
|
void |
setContractIds(java.lang.Long[] contractIDS)
Sets the contracts ids for basecommand calculation
|
void |
setCurrency(java.lang.String astrCurrency)
Sets the currency to be used for finding the price (Optional).
|
void |
setOrderItemComponentAccessBean(com.ibm.commerce.order.objects.OrderItemComponentAccessBean aOICAB)
Sets order item access bean which passed in.
|
void |
setQuantity(QuantityAmount inQuantity)
Sets the quantity for command calculation
|
void |
setTradingIds(java.lang.Long[] aTradingIds)
Sets the ids of the input trading agreements (Optional).
|
void |
validateParameters() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public MonetaryAmount getApplicableTradingUnitPrice()
GetContractPriceListCmd
getApplicableTradingUnitPrice
in interface GetContractPriceListCmd
GetContractPriceListCmd.getApplicableTradingUnitPrice()
public java.lang.Long getTcId()
GetContractPriceListCmd
getTcId
in interface GetContractPriceListCmd
GetContractPriceListCmd.getTcId()
public java.lang.Long getTradingId()
GetContractPriceListCmd
getTradingId
in interface GetContractPriceListCmd
com.ibm.commerce.price.commands.GetContractPriceListCmd#getTradingIds()
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
com.ibm.websphere.command.TargetableCommand#performExecute()
public void setCatEntryId(java.lang.Long catId)
GetContractPriceListCmd
setCatEntryId
in interface GetContractPriceListCmd
GetContractPriceListCmd.setCatEntryId(Long)
public void setContractIds(java.lang.Long[] contractIDS)
GetContractPriceListCmd
setContractIds
in interface GetContractPriceListCmd
contractIDS
- The reference numbers of a list of trading agreements to be used
to determine the offers that will supply the prices and the adjustments to be applied
to the prices.GetContractPriceListCmd.setContractIds(Long[])
public void setCurrency(java.lang.String astrCurrency)
GetContractPriceListCmd
setCurrency
in interface GetContractPriceListCmd
astrCurrency
- The currency to look up the price.
If the currency is not specified then the "negotiated" currency is used for
the store Id and shopper's preferred currency. (The negotiated currency is
the currency returned from the getCurrency() method of the currency manager).GetContractPriceListCmd.setCurrency(String)
public void setOrderItemComponentAccessBean(com.ibm.commerce.order.objects.OrderItemComponentAccessBean aOICAB)
GetContractPriceListCmd
setOrderItemComponentAccessBean
in interface GetContractPriceListCmd
aOICAB
- the order item access bean contains components in this dynamickit.GetContractPriceListCmd.setOrderItemComponentAccessBean(OrderItemComponentAccessBean)
public void setQuantity(QuantityAmount inQuantity)
GetContractPriceListCmd
setQuantity
in interface GetContractPriceListCmd
inQuantity
- The reference numbers of a quantity to be used
to determine the offers that will supply the prices and the adjustments to be applied
to the prices.GetContractPriceListCmd.setCatEntryId(Long)
public void setTradingIds(java.lang.Long[] aTradingIds)
GetContractPriceListCmd
setTradingIds
in interface GetContractPriceListCmd
aTradingIds
- The reference numbers of a list of trading agreements to be used
to determine the offers that will supply the prices and the adjustments to be applied
to the prices.GetContractPriceListCmd.setTradingIds(Long[])
public void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
com.ibm.websphere.command.TargetableCommand#validateParameters()