Uses of Class
com.broadleafcommerce.pricing.service.state.PriceableTargetPriceState
Package
Description
-
Uses of PriceableTargetPriceState in com.broadleafcommerce.pricing.service
Modifier and TypeMethodDescriptionprotected void
DefaultPriceInfoService.addBaseCostPriceDetail
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.protected void
DefaultPriceInfoService.addBasePriceDetail
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultPriceInfoService.addPriceInfoForTarget
(List<com.broadleafcommerce.pricing.client.domain.PriceInfo> priceInfos, com.broadleafcommerce.pricing.client.domain.PriceableTarget priceableTarget, com.broadleafcommerce.pricing.client.domain.PriceDetail bestPriceDetail, PriceableTargetPriceState priceState, boolean skipDetails) Uses the best price detail found for the target and creates aPriceInfo
for it.protected Optional<PriceListPriceDetail>
DefaultPriceInfoService.getPriceDetailFromListForTarget
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceList priceList, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Checks forPriceData
for thePriceableTarget
If none, checks forPriceModifier
s If none, works up thePriceList
hierarchy look for #1 or #2. If still none, checks for custom logic to get the price from somewhere else (DefaultPriceInfoService.getPriceFromElsewhere(PriceableTarget, PriceList, ContextInfo)
) If still none, returns thePriceableFieldProperties.getBasePrice()
(also seePriceableFieldType.BASE_PRICE
protected Optional<javax.money.MonetaryAmount>
DefaultPriceInfoService.getPriceFromListForTarget
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceList priceList, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected Optional<javax.money.MonetaryAmount>
DefaultPriceInfoService.getPriceFromModifier
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceList priceList, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected Optional<javax.money.MonetaryAmount>
DefaultPriceInfoService.getPriceFromPriceData
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, String priceListId, PriceableTargetPriceState priceState) Gets the price from a matching price data.protected Optional<PriceModifier>
DefaultPriceInfoService.getPriceModifierForTarget
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceList priceList, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultPriceInfoService.putBestPriceForType
(String type, String priceKey, PriceableTargetPriceState priceState) Records the highest-priority best (lowest) price for the price list type out of all the matches found.protected void
DefaultPriceInfoService.putPricesForType
(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Map<String, List<PriceList>> listsByType, String type, PriceableTargetPriceState priceState) -
Uses of PriceableTargetPriceState in com.broadleafcommerce.pricing.service.state
Modifier and TypeMethodDescriptionPriceableTargetPriceState.withPriceListAndTargetPriceDataMap
(Map<org.apache.commons.lang3.tuple.Pair<String, com.broadleafcommerce.pricing.client.domain.PriceableTargetRef>, PriceData> priceListAndTargetPriceDataMap) PriceableTargetPriceState.withPriceListIdPriceListMap
(Map<String, PriceList> priceListIdPriceListMap) PriceableTargetPriceState.withPriceListTypes
(List<String> priceListTypes)
DefaultPriceInfoService.getTargetsBaseDetails(PriceableTarget, ContextInfo)