|
|||||||||
| 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.PricingEngineService
atg.commerce.pricing.ItemPricingEngineImpl
public class ItemPricingEngineImpl
An ItemPricingEngine implementation which computes the price for an order. It accomplishes this task by invoking a series of ItemPricingCalculators which incrementally compute the items' prices:
Properties:
pPriceQuote before any pricing models are
evaluated.
pPriceQuote after any pricing models are
evaluated.
ItemPriceInfo,
ItemPricingCalculator| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Fields inherited from class atg.commerce.pricing.PricingEngineService |
|---|
mGlobalPromotions |
| 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 | |
|---|---|
ItemPricingEngineImpl()
|
|
| Method Summary | |
|---|---|
void |
checkPromotionsForCloseness(java.util.List pPriceInfos,
java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
Order pOrder,
java.util.Map pExtraParameters)
Check to see if the items qualify under any of the pricingModels' "closenessQualifiers". |
protected java.lang.String |
getCurrencyCode(CommerceItem pItem,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Return the currency code that should be used in the context of this pricing request |
protected java.lang.String |
getCurrencyCode(java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Return the currency code that should be used in the context of this pricing request |
ItemPricingCalculator[] |
getPostCalculators()
Returns property PostCalculators |
ItemPricingCalculator[] |
getPreCalculators()
Returns property PreCalculators |
java.util.Collection |
getPricingModels(RepositoryItem pProfile)
Returns a List of pricing models (e.g. |
java.util.List |
priceEachItem(java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Price each of a List of items in a context |
ItemPriceInfo |
priceItem(CommerceItem pItem,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Price a single item in a context |
java.util.List |
priceItems(java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
Order pOrder,
java.util.Map pExtraParameters)
Price a List of items together in a context |
void |
setPostCalculators(ItemPricingCalculator[] pPostCalculators)
Sets property PostCalculators |
void |
setPreCalculators(ItemPricingCalculator[] pPreCalculators)
Sets property PreCalculators |
| 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 ItemPricingEngineImpl()
| Method Detail |
|---|
public void setPreCalculators(ItemPricingCalculator[] pPreCalculators)
public ItemPricingCalculator[] getPreCalculators()
public void setPostCalculators(ItemPricingCalculator[] pPostCalculators)
public ItemPricingCalculator[] getPostCalculators()
public java.util.Collection getPricingModels(RepositoryItem pProfile)
getPricingModels in interface PricingEnginepProfile - The user's profile from which the engine will extract promotions
protected java.lang.String getCurrencyCode(CommerceItem pItem,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
throws PricingException
PricingException - if an error occurs while attempting to determine the currency code
protected java.lang.String getCurrencyCode(java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
throws PricingException
PricingException - if an error occurs while attempting to determine the currency code
public ItemPriceInfo priceItem(CommerceItem pItem,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
throws PricingException
priceItem in interface ItemPricingEnginepItem - The item to pricepPricingModels - A Collection of RepositoryItems representing PricingModelspLocale - The Locale to use for pricingpProfile - The user's profilepExtraParameters - A Map of extra parameters to be used in the pricing, may be null
PricingException - if an error occurs while attempting to price
public java.util.List priceEachItem(java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
throws PricingException
priceEachItem in interface ItemPricingEnginepItems - The items to price (individually)pPricingModels - A Collection of RepositoryItems representing PricingModelspLocale - The Locale to use for pricingpProfile - The user's profilepExtraParameters - A Map of extra parameters to be used in the pricing, may be null
PricingException - if an error occurs while attempting to price
public java.util.List priceItems(java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
Order pOrder,
java.util.Map pExtraParameters)
throws PricingException
priceItems in interface ItemPricingEnginepItems - The items to pricepPricingModels - A Collection of RepositoryItems representing PricingModelspLocale - The Locale to use for pricingpProfile - The user's profilepOrder - The Order object of which the List of items are a part, may be nullpExtraParameters - A Map of extra parameters to be used in the pricing, may be null
PricingException - if an error occurs while attempting to price
public void checkPromotionsForCloseness(java.util.List pPriceInfos,
java.util.List pItems,
java.util.Collection pPricingModels,
java.util.Locale pLocale,
RepositoryItem pProfile,
Order pOrder,
java.util.Map pExtraParameters)
throws PricingException
pPriceInfos - The PriceInfos associated with the itemspItems - The items to checkpPricingModels - A Collection of RepositoryItems representing PricingModelspLocale - The Locale to use for pricingpProfile - The user's profilepExtraParameters - A Map of extra parameters to be used in the pricing, may be null
PricingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||