public abstract class AbstractGetEntitledPriceCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements GetContractUnitPriceCmd, GetContractSpecialPriceCmd, GetProductContractUnitPriceCmd, GetEntitledPriceCmd
NAMENAMEdefaultCommandClassName, NAMEdefaultCommandClassName, NAME| Constructor and Description |
|---|
AbstractGetEntitledPriceCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long[] |
getApplicableTradingIds()
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
MonetaryAmount[] |
getApplicableTradingUnitPrices()
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
MonetaryAmount |
getBasePrice()
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
java.lang.Long |
getCatEntryId()
Returns the id of the input catalog entry.
|
CatEntryPrices[] |
getCatEntryPrices()
This method returns the price related information of the input catalog entries.
|
java.lang.String |
getCurrency()
This method returns the currency of catalog entry.
|
com.ibm.commerce.order.objects.OfferAccessBean |
getOffer()
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
java.lang.Long |
getOfferId()
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
MonetaryAmount |
getPrice()
This method returns the best price of the catalog entry.
|
QuantityAmount |
getQuantity()
This method returns quantity of a catalog entry.
|
java.lang.Integer |
getStoreId()
Returns the store id.
|
java.lang.Long |
getTcId()
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
java.lang.Long |
getTradingId()
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
void |
performExecute()
This method executes main business logic of the command: Firstly, it normalizes input parameters and map catalog
entry ID between catalog entry part number.
|
void |
reset()
Resets the command.
|
void |
setCatEntryId(java.lang.Long aCatEntryId)
This method sets the
Long value as input catalog entry ID. |
void |
setCatEntryPrices(CatEntryPrices[] aCatEntryPrices)
This method sets the information of one or more
catalog entries using CatEntryPrices
array. |
void |
setCurrency(java.lang.String astrCurrency)
This method sets a currency which is used for finding the entitled price.
|
void |
setErrorMode(boolean aErrorMode)
Sets the flag to indicate if exception will be thrown when the price cannot be found
|
void |
setMemberId(java.lang.Long anMemberId)
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
void |
setOfferIds(java.lang.Long[] aOfferIds)
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
void |
setOrderItemAccessBean(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAccessBean)
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
void |
setOrganizationId(java.lang.Long anOrganizationId)
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
void |
setQuantity(QuantityAmount aQuantityAmount)
Sets the quantity amount of the input catalog entry that is to be priced.
|
void |
setStoreId(java.lang.Integer aStoreId)
Sets the id of the input store to be used for calculating the price .
|
void |
setTradingIds(java.lang.Long[] aTradingIds)
This method, inherited from the parent class, is not supported for integration with an external price management
system.
|
void |
validateParameters()
This method performs server side parameter checking, validates the mandatory parameters.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic java.lang.Long[] getApplicableTradingIds()
getApplicableTradingIds in interface GetContractSpecialPriceCmdgetApplicableTradingIds in interface GetContractUnitPriceCmdgetApplicableTradingIds in interface GetProductContractUnitPriceCmdGetContractUnitPriceCmd.getPrice() returns null.GetProductContractUnitPriceCmd.getApplicableTradingIds()public MonetaryAmount[] getApplicableTradingUnitPrices()
getApplicableTradingUnitPrices in interface GetContractSpecialPriceCmdgetApplicableTradingUnitPrices in interface GetContractUnitPriceCmdgetApplicableTradingUnitPrices in interface GetProductContractUnitPriceCmdGetContractUnitPriceCmd.getPrice() returns null.GetProductContractUnitPriceCmd.getApplicableTradingUnitPrices()public MonetaryAmount getBasePrice()
getBasePrice in interface GetContractSpecialPriceCmdgetBasePrice in interface GetContractUnitPriceCmdgetBasePrice in interface GetProductContractUnitPriceCmdGetProductContractUnitPriceCmd.getBasePrice()public java.lang.Long getCatEntryId()
public CatEntryPrices[] getCatEntryPrices()
getCatEntryPrices in interface GetContractSpecialPriceCmdgetCatEntryPrices in interface GetContractUnitPriceCmdgetCatEntryPrices in interface GetEntitledPriceCmdgetCatEntryPrices in interface GetProductContractUnitPriceCmdpublic java.lang.String getCurrency()
throws com.ibm.commerce.exception.ECSystemException
getCurrency in interface GetEntitledPriceCmdcurrency value.com.ibm.commerce.exception.ECSystemException - If an error occurs when getting currency.public com.ibm.commerce.order.objects.OfferAccessBean getOffer()
getOffer in interface GetContractSpecialPriceCmdgetOffer in interface GetContractUnitPriceCmdgetOffer in interface GetProductContractUnitPriceCmdGetContractUnitPriceCmd.getPrice() returns null.GetProductContractUnitPriceCmd.getOffer()public java.lang.Long getOfferId()
getOfferId in interface GetContractSpecialPriceCmdgetOfferId in interface GetContractUnitPriceCmdgetOfferId in interface GetProductContractUnitPriceCmdGetContractUnitPriceCmd.getPrice() returns null.GetProductContractUnitPriceCmd.getOfferId()public MonetaryAmount getPrice()
getPrice in interface GetContractSpecialPriceCmdgetPrice in interface GetContractUnitPriceCmdgetPrice in interface GetEntitledPriceCmdgetPrice in interface GetProductContractUnitPriceCmdpublic QuantityAmount getQuantity() throws com.ibm.commerce.exception.ECSystemException
getQuantity in interface GetEntitledPriceCmdQuantityAmount that contains the quantity value and uom.com.ibm.commerce.exception.ECSystemException - If an error occurs when getting quantity.public java.lang.Integer getStoreId()
getStoreId in interface com.ibm.commerce.command.ECCommandgetStoreId in class com.ibm.commerce.command.AbstractECTargetableCommandpublic java.lang.Long getTcId()
getTcId in interface GetContractSpecialPriceCmdgetTcId in interface GetContractUnitPriceCmdgetTcId in interface GetProductContractUnitPriceCmdGetContractUnitPriceCmd.getPrice() returns null.GetProductContractUnitPriceCmd.getTcId()public java.lang.Long getTradingId()
getTradingId in interface GetContractSpecialPriceCmdgetTradingId in interface GetContractUnitPriceCmdgetTradingId in interface GetProductContractUnitPriceCmdGetContractUnitPriceCmd.getPrice()
returns null.GetProductContractUnitPriceCmd.getTradingId()public void performExecute()
throws com.ibm.commerce.exception.ECException
GetPriceListType and calls external service. Thirdly, it resolves
ShowPriceListDataAreaType returned from external service. Finally, it updates price memory cache using result.performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - If an error occurs when getting entitled price from external service.public void reset()
reset in interface GetContractSpecialPriceCmdreset in interface GetContractUnitPriceCmdreset in interface GetProductContractUnitPriceCmdreset in class com.ibm.commerce.command.AbstractECTargetableCommandpublic void setCatEntryId(java.lang.Long aCatEntryId)
Long value as input catalog entry ID.setCatEntryId in interface GetContractSpecialPriceCmdsetCatEntryId in interface GetContractUnitPriceCmdsetCatEntryId in interface GetEntitledPriceCmdsetCatEntryId in interface GetProductContractUnitPriceCmdaCatEntryId - The Long value which represents catalog entry ID.public void setCatEntryPrices(CatEntryPrices[] aCatEntryPrices)
catalog entries using CatEntryPrices
array.setCatEntryPrices in interface GetContractSpecialPriceCmdsetCatEntryPrices in interface GetContractUnitPriceCmdsetCatEntryPrices in interface GetEntitledPriceCmdaCatEntryPrices - The array of CatEntryPrices.public void setCurrency(java.lang.String astrCurrency)
setCurrency in interface GetContractSpecialPriceCmdsetCurrency in interface GetContractUnitPriceCmdsetCurrency in interface GetEntitledPriceCmdsetCurrency in interface GetProductContractUnitPriceCmdastrCurrency - The public void setErrorMode(boolean aErrorMode)
setErrorMode in interface GetContractSpecialPriceCmdsetErrorMode in interface GetContractUnitPriceCmdsetErrorMode in interface GetProductContractUnitPriceCmdaErrorMode - The boolean value which indicates whether throwing exception when unsuccessfully
retrieving best price. If it's true, the exception will be thrown.public void setMemberId(java.lang.Long anMemberId)
setMemberId in interface GetContractUnitPriceCmdanMemberId - The member identifier to be used to verify the input list of
trading agreements. If null, the default value will be used.GetContractUnitPriceCmd.setMemberId(java.lang.Long)public void setOfferIds(java.lang.Long[] aOfferIds)
setOfferIds in interface GetContractSpecialPriceCmdsetOfferIds in interface GetContractUnitPriceCmdsetOfferIds in interface GetProductContractUnitPriceCmdaOfferIds - The reference number of one or more offers that are to be used
for determining the price. If null or empty, then the "best"
of all qualifying offers will be used. Otherwise, the "best"
of the specified offers will be returned.GetProductContractUnitPriceCmd.setOfferIds(java.lang.Long[])public void setOrderItemAccessBean(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAccessBean)
setOrderItemAccessBean in interface GetContractSpecialPriceCmdaOrderItemAccessBean - An order item access bean. May be null.GetContractSpecialPriceCmd.setOrderItemAccessBean(com.ibm.commerce.order.objects.OrderItemAccessBean)public void setOrganizationId(java.lang.Long anOrganizationId)
setOrganizationId in interface GetContractUnitPriceCmdanOrganizationId - The organization identifier to be used in conjunction with the
member identifier to verify the input list of trading
agreements. If null, the default value will be used.GetContractUnitPriceCmd.setOrganizationId(java.lang.Long)public void setQuantity(QuantityAmount aQuantityAmount)
setQuantity in interface GetContractSpecialPriceCmdsetQuantity in interface GetContractUnitPriceCmdsetQuantity in interface GetEntitledPriceCmdsetQuantity in interface GetProductContractUnitPriceCmdaQuantityAmount - the quantitypublic void setStoreId(java.lang.Integer aStoreId)
setStoreId in interface GetContractSpecialPriceCmdsetStoreId in interface GetContractUnitPriceCmdsetStoreId in interface GetEntitledPriceCmdsetStoreId in interface GetProductContractUnitPriceCmdaStoreId - the store IDpublic void setTradingIds(java.lang.Long[] aTradingIds)
setTradingIds in interface GetContractSpecialPriceCmdsetTradingIds in interface GetContractUnitPriceCmdsetTradingIds in interface GetProductContractUnitPriceCmdaTradingIds - The identifiers of the trading agreements to be used to
determine the prices. If null or empty, the current or
entitled trading agreements will be used as described above.GetProductContractUnitPriceCmd.setTradingIds(java.lang.Long[])public void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - If an error occurs when validating parameters.