public class ConfigurableItemPriceListCalculator extends ItemPriceCalculator
ItemPriceInfo,
ConfigurableCommerceItem| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
ConfigurableItemPriceListCalculator() |
| Modifier and Type | Method and Description |
|---|---|
double |
getConfigurableItemListPrice(ItemPriceInfo pPriceQuote,
CommerceItem pItem,
RepositoryItem pPricingModel,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Get the list price of the parent item
|
double |
getConfigurableItemPrice(ItemPriceInfo pPriceQuote,
CommerceItem pItem,
RepositoryItem pPricingModel,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Get the current working price of the parent item
|
java.lang.String |
getListPricePropertyName()
the name of the property for the ListPrice
|
java.lang.String |
getProfilePriceListPropertyName()
The name of the property in the profile that stores the price list.
|
double |
getSubSkuPrice(CommerceItem pSubItem,
CommerceItem pParentItem,
RepositoryItem pPriceList,
RepositoryItem pPrice)
Get the current price for the given subsku
|
boolean |
isNoPriceIsError()
If this is true, and the price list is null or there is not price in
the price list, then an error is thrown.
|
void |
priceItem(ItemPriceInfo pPriceQuote,
CommerceItem pItem,
RepositoryItem pPricingModel,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
Price a single item in a context.
|
void |
setListPricePropertyName(java.lang.String pListPricePropertyName)
the name of the property for the ListPrice
|
void |
setNoPriceIsError(boolean pNoPriceIsError)
If this is true, and the price list is null or there is not price in
the price list, then an error is thrown.
|
void |
setProfilePriceListPropertyName(java.lang.String pProfilePriceListPropertyName)
The name of the property in the profile that stores the price list.
|
getDifferentPriceList, getItemPriceSource, getLoggingIdentifier, getNoPriceCalculator, getPriceListManager, getPricingScheme, getPricingSchemeNames, getPricingSchemePropertyName, getPricingTools, isUseDefaultPriceList, populateItemPriceSource, priceEachItem, priceItems, setLoggingIdentifier, setNoPriceCalculator, setPriceListManager, setPricingSchemeNames, setPricingSchemePropertyName, setPricingTools, setUseDefaultPriceList, shouldConsumeSourceaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setListPricePropertyName(java.lang.String pListPricePropertyName)
pListPricePropertyName - new value to setpublic java.lang.String getListPricePropertyName()
public void setProfilePriceListPropertyName(java.lang.String pProfilePriceListPropertyName)
setProfilePriceListPropertyName in class ItemPriceCalculatorpProfilePriceListPropertyName - The new value to setpublic java.lang.String getProfilePriceListPropertyName()
getProfilePriceListPropertyName in class ItemPriceCalculatorpublic void setNoPriceIsError(boolean pNoPriceIsError)
setNoPriceIsError in class ItemPriceCalculatorpNoIsError - The new value to setpublic boolean isNoPriceIsError()
isNoPriceIsError in class ItemPriceCalculatorpublic void priceItem(ItemPriceInfo pPriceQuote, CommerceItem pItem, RepositoryItem pPricingModel, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters) throws PricingException
profilePriceListPropertyNamepriceItem in interface ItemPricingCalculatorpriceItem in class ItemPriceCalculatorpPriceQuote - ItemPriceInfo representing the current price quote for the itempItem - The item to pricepPricingModel - A RepositoryItem representing a PricingModelpLocale - The user's localepProfile - The user's profilepExtraParameters - A Map of extra parameters to be used in the pricing, may be null
You may override the price list in the profile by providing a price
list (or price list id) in this map. Use profilePriceListPropertyName
as the keyPricingExceptionItemPriceCalculator.getItemPriceSource(ItemPriceInfo, CommerceItem, RepositoryItem, Locale, RepositoryItem, Map),
ItemPriceCalculator.shouldConsumeSource(ItemPriceSource)public double getConfigurableItemPrice(ItemPriceInfo pPriceQuote, CommerceItem pItem, RepositoryItem pPricingModel, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters)
pPriceQuote - ItemPriceInfo representing the current price quote for the itempItem - The item to price (currently ignored)pPricingModel - A RepositoryItem representing a PricingModel (currently ignored)pLocale - The user's locale (currently ignored)pProfile - The user's profile (currently ignored)pExtraParameters - A Map of extra parameters to be used in the pricing, may be null (currently ignored)public double getConfigurableItemListPrice(ItemPriceInfo pPriceQuote, CommerceItem pItem, RepositoryItem pPricingModel, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters)
pPriceQuote - ItemPriceInfo representing the current price quote for the itempItem - The item to price (currently ignored)pPricingModel - A RepositoryItem representing a PricingModel (currently ignored)pLocale - The user's locale (currently ignored)pProfile - The user's profile (currently ignored)pExtraParameters - A Map of extra parameters to be used in the pricing, may be null (currently ignored)public double getSubSkuPrice(CommerceItem pSubItem, CommerceItem pParentItem, RepositoryItem pPriceList, RepositoryItem pPrice)
pSubItem - The CommerceItem object for the sub skupParentItem - The CommerceItem object for the parent skupPriceList - The price list used to get the pricepPrice - The price repository item for the sub skulistPricePropertyName