|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.pricing.priceLists.ItemSalesTieredPriceCalculator
public class ItemSalesTieredPriceCalculator
A calculator which determines the sales tiered price of an item and sets the itemPriceInfo to be that amount.
The definition of tiered pricing can be referenced in ItemTieredPriceCalculator
ItemTieredPriceCalculator| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
ItemSalesTieredPriceCalculator()
|
|
| Method Summary | |
|---|---|
protected void |
addToSalesLevel(long pQuantity,
double pTotal,
java.util.List pSalesLevel)
|
protected java.util.List |
adjustmentDetailedItemPriceInfo(DetailedItemPriceInfo pOldItemPriceInfo,
java.util.List pSalesLevel,
java.util.List pAdjustments)
Sets the DetailedItemPriceInfo for its ItemPriceInfo. |
java.lang.String |
getPriceLevelPropertyName()
the name of the property for the PriceLevel |
java.lang.String |
getPricePropertyName()
the name of the property for the price of each price level |
PricingTools |
getPricingTools()
pricing tools to help with price calculation |
java.lang.String |
getQuantityPropertyName()
the name of the property for the quantity of each price level |
java.lang.String |
getSalesComplexPricePropertyName()
the name of the property for the SalesComplexPrice |
void |
priceItem(RepositoryItem pPrice,
ItemPriceInfo pPriceQuote,
CommerceItem pItem,
RepositoryItem pPricingModel,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Sets the tiered price with the given determined price |
void |
setPriceLevelPropertyName(java.lang.String pPriceLevelPropertyName)
the name of the property for the PriceLevel |
void |
setPricePropertyName(java.lang.String pPricePropertyName)
the name of the property for the price of each price level |
void |
setPricingTools(PricingTools pPricingTools)
pricing tools to help with price calculation |
void |
setQuantityPropertyName(java.lang.String pQuantityPropertyName)
the name of the property for the quantity of each price level |
void |
setSalesComplexPricePropertyName(java.lang.String pSalesComplexPricePropertyName)
the name of the property for the SalesComplexPrice |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public ItemSalesTieredPriceCalculator()
| Method Detail |
|---|
public void setPricingTools(PricingTools pPricingTools)
pPricingTools - new value to setpublic PricingTools getPricingTools()
public void setSalesComplexPricePropertyName(java.lang.String pSalesComplexPricePropertyName)
pSalesComplexPricePropertyName - new value to setpublic java.lang.String getSalesComplexPricePropertyName()
public void setPriceLevelPropertyName(java.lang.String pPriceLevelPropertyName)
pPriceLevelPropertyName - new value to setpublic java.lang.String getPriceLevelPropertyName()
public void setQuantityPropertyName(java.lang.String pQuantityPropertyName)
pQuantityPropertyName - new value to setpublic java.lang.String getQuantityPropertyName()
public void setPricePropertyName(java.lang.String pPricePropertyName)
pPricePropertyName - new value to setpublic java.lang.String getPricePropertyName()
protected void addToSalesLevel(long pQuantity,
double pTotal,
java.util.List pSalesLevel)
protected java.util.List adjustmentDetailedItemPriceInfo(DetailedItemPriceInfo pOldItemPriceInfo,
java.util.List pSalesLevel,
java.util.List pAdjustments)
pQuantity - The quantity to set in the DetailedItemPriceInfopTotal - The total amount to set in the DetailedItemPriceInfopPriceQuote - ItemPriceInfo representing the current price quote for the itempDetailList - The list of DetailedItemPriceInfo for the current ItemPriceInfopAdjustments - The list of PriceAdjustment for the current ItemPriceInfo
public void priceItem(RepositoryItem pPrice,
ItemPriceInfo pPriceQuote,
CommerceItem pItem,
RepositoryItem pPricingModel,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
throws PricingException
priceItem in interface ItemSchemePriceCalculatorpPrice - the price as extracted from the PriceListpPriceQuote - ItemPriceInfo representing the current price quote for the itempItem - The item to pricepPricingModel - A RepositoryItem representing a PricingModelpLocale - the locale in which this item should be pricedpProfile - The user's profilepExtraParameters - A Map of extra parameters to be used in the pricing, may be null
PricingException - if there was a problem pricing the input pItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||