public abstract class AbstractGetEntitledPriceCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements GetContractUnitPriceCmd, GetContractSpecialPriceCmd, GetProductContractUnitPriceCmd, GetEntitledPriceCmd
NAME
NAME
defaultCommandClassName, NAME
defaultCommandClassName, 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, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public java.lang.Long[] getApplicableTradingIds()
getApplicableTradingIds
in interface GetContractSpecialPriceCmd
getApplicableTradingIds
in interface GetContractUnitPriceCmd
getApplicableTradingIds
in interface GetProductContractUnitPriceCmd
GetContractUnitPriceCmd.getPrice()
returns null.GetProductContractUnitPriceCmd.getApplicableTradingIds()
public MonetaryAmount[] getApplicableTradingUnitPrices()
getApplicableTradingUnitPrices
in interface GetContractSpecialPriceCmd
getApplicableTradingUnitPrices
in interface GetContractUnitPriceCmd
getApplicableTradingUnitPrices
in interface GetProductContractUnitPriceCmd
GetContractUnitPriceCmd.getPrice()
returns null.GetProductContractUnitPriceCmd.getApplicableTradingUnitPrices()
public MonetaryAmount getBasePrice()
getBasePrice
in interface GetContractSpecialPriceCmd
getBasePrice
in interface GetContractUnitPriceCmd
getBasePrice
in interface GetProductContractUnitPriceCmd
GetProductContractUnitPriceCmd.getBasePrice()
public java.lang.Long getCatEntryId()
public CatEntryPrices[] getCatEntryPrices()
getCatEntryPrices
in interface GetContractSpecialPriceCmd
getCatEntryPrices
in interface GetContractUnitPriceCmd
getCatEntryPrices
in interface GetEntitledPriceCmd
getCatEntryPrices
in interface GetProductContractUnitPriceCmd
public java.lang.String getCurrency() throws com.ibm.commerce.exception.ECSystemException
getCurrency
in interface GetEntitledPriceCmd
currency
value.com.ibm.commerce.exception.ECSystemException
- If an error occurs when getting currency.public com.ibm.commerce.order.objects.OfferAccessBean getOffer()
getOffer
in interface GetContractSpecialPriceCmd
getOffer
in interface GetContractUnitPriceCmd
getOffer
in interface GetProductContractUnitPriceCmd
GetContractUnitPriceCmd.getPrice()
returns null.GetProductContractUnitPriceCmd.getOffer()
public java.lang.Long getOfferId()
getOfferId
in interface GetContractSpecialPriceCmd
getOfferId
in interface GetContractUnitPriceCmd
getOfferId
in interface GetProductContractUnitPriceCmd
GetContractUnitPriceCmd.getPrice()
returns null.GetProductContractUnitPriceCmd.getOfferId()
public MonetaryAmount getPrice()
getPrice
in interface GetContractSpecialPriceCmd
getPrice
in interface GetContractUnitPriceCmd
getPrice
in interface GetEntitledPriceCmd
getPrice
in interface GetProductContractUnitPriceCmd
public QuantityAmount getQuantity() throws com.ibm.commerce.exception.ECSystemException
getQuantity
in interface GetEntitledPriceCmd
QuantityAmount
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.ECCommand
getStoreId
in class com.ibm.commerce.command.AbstractECTargetableCommand
public java.lang.Long getTcId()
getTcId
in interface GetContractSpecialPriceCmd
getTcId
in interface GetContractUnitPriceCmd
getTcId
in interface GetProductContractUnitPriceCmd
GetContractUnitPriceCmd.getPrice()
returns null.GetProductContractUnitPriceCmd.getTcId()
public java.lang.Long getTradingId()
getTradingId
in interface GetContractSpecialPriceCmd
getTradingId
in interface GetContractUnitPriceCmd
getTradingId
in interface GetProductContractUnitPriceCmd
GetContractUnitPriceCmd.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.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- If an error occurs when getting entitled price from external service.public void reset()
reset
in interface GetContractSpecialPriceCmd
reset
in interface GetContractUnitPriceCmd
reset
in interface GetProductContractUnitPriceCmd
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void setCatEntryId(java.lang.Long aCatEntryId)
Long
value as input catalog entry ID
.setCatEntryId
in interface GetContractSpecialPriceCmd
setCatEntryId
in interface GetContractUnitPriceCmd
setCatEntryId
in interface GetEntitledPriceCmd
setCatEntryId
in interface GetProductContractUnitPriceCmd
aCatEntryId
- The Long
value which represents catalog entry ID
.public void setCatEntryPrices(CatEntryPrices[] aCatEntryPrices)
catalog entries
using CatEntryPrices
array.setCatEntryPrices
in interface GetContractSpecialPriceCmd
setCatEntryPrices
in interface GetContractUnitPriceCmd
setCatEntryPrices
in interface GetEntitledPriceCmd
aCatEntryPrices
- The array of CatEntryPrices
.public void setCurrency(java.lang.String astrCurrency)
setCurrency
in interface GetContractSpecialPriceCmd
setCurrency
in interface GetContractUnitPriceCmd
setCurrency
in interface GetEntitledPriceCmd
setCurrency
in interface GetProductContractUnitPriceCmd
astrCurrency
- The public void setErrorMode(boolean aErrorMode)
setErrorMode
in interface GetContractSpecialPriceCmd
setErrorMode
in interface GetContractUnitPriceCmd
setErrorMode
in interface GetProductContractUnitPriceCmd
aErrorMode
- 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 GetContractUnitPriceCmd
anMemberId
- 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 GetContractSpecialPriceCmd
setOfferIds
in interface GetContractUnitPriceCmd
setOfferIds
in interface GetProductContractUnitPriceCmd
aOfferIds
- 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 GetContractSpecialPriceCmd
aOrderItemAccessBean
- 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 GetContractUnitPriceCmd
anOrganizationId
- 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 GetContractSpecialPriceCmd
setQuantity
in interface GetContractUnitPriceCmd
setQuantity
in interface GetEntitledPriceCmd
setQuantity
in interface GetProductContractUnitPriceCmd
aQuantityAmount
- the quantitypublic void setStoreId(java.lang.Integer aStoreId)
setStoreId
in interface GetContractSpecialPriceCmd
setStoreId
in interface GetContractUnitPriceCmd
setStoreId
in interface GetEntitledPriceCmd
setStoreId
in interface GetProductContractUnitPriceCmd
aStoreId
- the store IDpublic void setTradingIds(java.lang.Long[] aTradingIds)
setTradingIds
in interface GetContractSpecialPriceCmd
setTradingIds
in interface GetContractUnitPriceCmd
setTradingIds
in interface GetProductContractUnitPriceCmd
aTradingIds
- 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.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- If an error occurs when validating parameters.