public class PriceRuleGetContractUnitPriceCmdImpl extends AbstractGetPriceCmdImpl implements GetCustomContractUnitPriceCmd
GetContractUnitPriceCmdImpl
which only supports price rules. If a
price rule term condition exists for a contract or a base contract, the price
rule term condition will override any legacy term conditions (price term
conditions that do not specify a price rule) for that contract. Otherwise,
the legacy term conditions will be used.defaultCommandClassName, NAME
Constructor and Description |
---|
PriceRuleGetContractUnitPriceCmdImpl()
Constructor for PriceRuleGetContractUnitPriceCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Uses the
RuleEngineExecutePriceRuleCmd command to obtain the
price. |
void |
setCustomData(java.util.Map customData)
Set custom data that is passed to the command.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicableTradingIds, getApplicableTradingUnitPrices, getBasePrice, getCatEntryPrices, getOffer, getOfferId, getPrice, getStoreId, getTcId, getTradingId, reset, setCatEntryId, setCatEntryPrices, setCurrency, setErrorMode, setMemberId, setOfferIds, setOrderItemAccessBean, setOrganizationId, setQuantity, setStoreId, setTradingIds, validateParameters
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
getApplicableTradingIds, getApplicableTradingUnitPrices, getBasePrice, getCatEntryPrices, getOffer, getOfferId, getPrice, getTcId, getTradingId, reset, setCatEntryId, setCatEntryPrices, setCurrency, setErrorMode, setMemberId, setOfferIds, setOrganizationId, setQuantity, setStoreId, setTradingIds
getApplicableTradingIds, getApplicableTradingUnitPrices, getBasePrice, getCatEntryPrices, getOffer, getOfferId, getPrice, getTcId, getTradingId, reset, setCatEntryId, setCurrency, setErrorMode, setOfferIds, setQuantity, setStoreId, setTradingIds
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
getApplicableTradingIds, getApplicableTradingUnitPrices, getBasePrice, getCatEntryPrices, getOffer, getOfferId, getPrice, getTcId, getTradingId, reset, setCatEntryId, setCatEntryPrices, setCurrency, setErrorMode, setOfferIds, setOrderItemAccessBean, setQuantity, setStoreId, setTradingIds
public PriceRuleGetContractUnitPriceCmdImpl()
public void performExecute() throws com.ibm.commerce.exception.ECException
RuleEngineExecutePriceRuleCmd
command to obtain the
price. This command will first compose the input data for the service,
execute the service, and interpret the results.performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- If there was an error composing the price for the service
command or looking up data from the service command. This
error will not be thrown if AbstractGetPriceCmdImpl.setErrorMode(boolean)
was set to false.public void setCustomData(java.util.Map customData)
GetCustomContractUnitPriceCmd
setCustomData
in interface GetCustomContractUnitPriceCmd
customData
- The custom data to be used for calculating
the price. This value may be null or empty.