Uses of Class
com.broadleafcommerce.pricing.domain.PriceList
-
-
Uses of PriceList in com.broadleafcommerce.pricing.dataimport
Methods in com.broadleafcommerce.pricing.dataimport that return types with arguments of type PriceList Modifier and Type Method Description PriceListService<PriceList>
PriceDataImportBatchHandler. getPriceListService()
Constructor parameters in com.broadleafcommerce.pricing.dataimport with type arguments of type PriceList Constructor Description PriceDataImportBatchHandler(PriceDataConverter priceDataConverter, PriceDataService<PriceData> priceDataService, PriceListService<PriceList> priceListService, com.broadleafcommerce.common.extension.TypeFactory pricingFactory, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator)
-
Uses of PriceList in com.broadleafcommerce.pricing.dataimport.autoconfigure
Method parameters in com.broadleafcommerce.pricing.dataimport.autoconfigure with type arguments of type PriceList Modifier and Type Method Description PriceDataImportBatchHandler
PricingServicesImportAutoConfiguration. priceDataImportBatchHandler(PriceDataConverter priceDataConverter, PriceDataService<PriceData> priceDataService, PriceListService<PriceList> priceListService, com.broadleafcommerce.common.extension.TypeFactory pricingFactory, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator)
-
Uses of PriceList in com.broadleafcommerce.pricing.domain
Methods in com.broadleafcommerce.pricing.domain with parameters of type PriceList Modifier and Type Method Description int
PriceList. compareTo(PriceList o)
Compares first by priority then by id if equal. -
Uses of PriceList in com.broadleafcommerce.pricing.service
Classes in com.broadleafcommerce.pricing.service with type parameters of type PriceList Modifier and Type Class Description class
DefaultPriceListService<P extends PriceList>
interface
PriceListService<P extends PriceList>
Base service API forPriceList
s.Methods in com.broadleafcommerce.pricing.service with type parameters of type PriceList Modifier and Type Method Description protected <P extends PriceList>
List<P>DefaultPriceListFilterService. getCurrencyTargetingPriceLists(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, PriceListService<P> priceListService, List<javax.money.CurrencyUnit> currencies)
<P extends PriceList>
List<P>DefaultPriceListFilterService. getFilteredPriceLists(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, PriceListService<P> priceListService)
<P extends PriceList>
List<P>PriceListFilterService. getFilteredPriceLists(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, PriceListService<P> priceListService)
Filters all price lists by type and combines the results into single listprotected <P extends PriceList>
List<P>DefaultPriceListFilterService. getUserTargetingPriceLists(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, PriceListService<P> priceListService, List<javax.money.CurrencyUnit> currencies)
<P extends PriceList>
List<P>DefaultPriceListFilterService. prioritizePriceLists(List<P> priceLists)
<P extends PriceList>
List<P>PriceListFilterService. prioritizePriceLists(List<P> priceLists)
Sorts the price lists by priority in ascending order, then returns all those with the highest priority.Methods in com.broadleafcommerce.pricing.service that return types with arguments of type PriceList Modifier and Type Method Description protected PriceListService<PriceList>
DefaultPriceInfoService. getPriceListService()
protected List<PriceList>
DefaultPriceInfoService. prepareEligiblePriceLists(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext)
Reads all priceLists that are in scope for the priceInfo request and splits them inprotected Map<String,List<PriceList>>
DefaultPriceInfoService. splitPriceListsByType(List<PriceList> priceLists)
Methods in com.broadleafcommerce.pricing.service with parameters of type PriceList Modifier and Type Method Description protected void
DefaultPriceInfoService. addPriceDetail(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo, PriceList priceList, javax.money.MonetaryAmount price, Map<String,List<PriceDataTier>> priceTiers)
com.broadleafcommerce.pricing.client.domain.PriceListRef
DefaultPriceListService. convertPriceListToPriceListRef(PriceList priceList)
com.broadleafcommerce.pricing.client.domain.PriceListRef
PriceListService. convertPriceListToPriceListRef(PriceList priceList)
Create a lightweight PriceListRef from a PriceList object.P
DefaultPriceDataService. create(PriceList priceList, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
P
PriceDataService. create(PriceList priceList, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
void
DefaultPriceDataService. delete(PriceList priceList, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
void
PriceDataService. delete(PriceList priceList, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
protected Optional<javax.money.MonetaryAmount>
DefaultPriceInfoService. getPriceFromElsewhere(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceList priceList, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Extension point for getting price from somewhere other than a price data or modifier before defaulting to the base price on the target.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)
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. getPriceFromModifier(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceList priceList, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected Optional<PriceModifier>
DefaultPriceInfoService. getPriceModifierForTarget(com.broadleafcommerce.pricing.client.domain.PriceableTarget target, PriceList priceList, PriceableTargetPriceState priceState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
P
DefaultPriceDataService. readByContextId(PriceList priceList, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
P
PriceDataService. readByContextId(PriceList priceList, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
P
DefaultPriceDataService. replace(PriceList priceList, String id, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
P
PriceDataService. replace(PriceList priceList, String id, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
P
DefaultPriceDataService. update(PriceList priceList, String id, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
P
PriceDataService. update(PriceList priceList, String id, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Method parameters in com.broadleafcommerce.pricing.service with type arguments of type PriceList Modifier and Type Method Description protected List<String>
DefaultPriceInfoService. convertPriceListsToPriceListIds(Collection<PriceList> priceLists)
void
DefaultPriceListFilterService. filterPriceListsUsingContextRules(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, List<? extends PriceList> initialList)
Filter price lists by their criteria fields (getPriceContextCriteria()
) then by hierarchical relationship.void
DefaultPriceListFilterService. filterPriceListsUsingCurrencyInfo(List<? extends PriceList> initialList, CurrencyInfo currencyInfo)
Filter price lists based on currency.protected Optional<com.broadleafcommerce.pricing.client.domain.PriceDetail>
DefaultPriceInfoService. getBestPriceForType(Map<PriceList,javax.money.MonetaryAmount> pricesMap)
Picks the best (lowest) price for the price list type out of all the matches found.protected Map<org.apache.commons.lang3.tuple.Pair<String,com.broadleafcommerce.pricing.client.domain.PriceableTargetRef>,PriceData>
DefaultPriceInfoService. getPriceListAndTargetPriceDataMap(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget> priceableTargets, List<PriceList> priceLists)
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)
protected org.springframework.data.domain.Page<com.broadleafcommerce.pricing.client.domain.PriceInfo>
DefaultPriceInfoService. retrievePriceInfosByPriceLists(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, List<PriceList> priceLists)
protected Map<String,List<PriceList>>
DefaultPriceInfoService. splitPriceListsByType(List<PriceList> priceLists)
protected void
DefaultPriceInfoService. updateContextInfoCurrency(List<PriceList> priceLists, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Constructor parameters in com.broadleafcommerce.pricing.service with type arguments of type PriceList Constructor Description DefaultPriceInfoService(PriceDataService<PriceData> priceDataService, com.broadleafcommerce.rulesengine.expression.service.RuleEvaluationService ruleEvaluationService, PriceableFieldProperties priceableFields, PriceListService<PriceList> priceListService, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator validator, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Uses of PriceList in com.broadleafcommerce.pricing.service.state
Methods in com.broadleafcommerce.pricing.service.state that return types with arguments of type PriceList Modifier and Type Method Description Map<PriceList,javax.money.MonetaryAmount>
PriceableTargetPriceState. getCompositePriceListPriceMap()
Composite of all price list price mapsMap<PriceList,javax.money.MonetaryAmount>
PriceableTargetPriceState. getContractPriceListPriceMap()
protected Map<PriceList,javax.money.MonetaryAmount>
PriceableTargetPriceState. getOtherPriceListPriceMapping(String type)
Extension point for additional price list typesMap<String,PriceList>
PriceableTargetPriceState. getPriceListIdPriceListMap()
All first-level price lists mapped to the price lists they represent.Map<PriceList,javax.money.MonetaryAmount>
PriceableTargetPriceState. getPriceListPriceMappingForType(String type)
Gets the price list price mapping for the price list typeMap<PriceList,javax.money.MonetaryAmount>
PriceableTargetPriceState. getSalePriceListPriceMap()
Map<PriceList,javax.money.MonetaryAmount>
PriceableTargetPriceState. getStdPriceListPriceMap()
Methods in com.broadleafcommerce.pricing.service.state with parameters of type PriceList Modifier and Type Method Description void
PriceableTargetPriceState. putPriceListPriceMapping(PriceList priceList, javax.money.MonetaryAmount price)
Put a price list price mapping.Method parameters in com.broadleafcommerce.pricing.service.state with type arguments of type PriceList Modifier and Type Method Description protected void
PriceableTargetPriceState. putOtherPriceListPriceMaps(Map<PriceList,javax.money.MonetaryAmount> composite)
Extension point for additional price list typesPriceableTargetPriceState
PriceableTargetPriceState. withPriceListIdPriceListMap(Map<String,PriceList> priceListIdPriceListMap)
-
Uses of PriceList in com.broadleafcommerce.pricing.service.validation
Methods in com.broadleafcommerce.pricing.service.validation that return types with arguments of type PriceList Modifier and Type Method Description protected PriceListService<PriceList>
PriceDataValidator. getPriceListService()
protected PriceListService<PriceList>
PriceListValidator. getPriceListService()
Methods in com.broadleafcommerce.pricing.service.validation with parameters of type PriceList Modifier and Type Method Description protected void
PriceListValidator. validateAllowVendorsToAddPriceData(PriceList priceList, org.springframework.validation.Errors errors)
protected void
PriceListValidator. validateEndDate(PriceList priceList, org.springframework.validation.Errors errors)
protected void
PriceListValidator. validatePriceContextCriteria(PriceList priceList, org.springframework.validation.Errors errors)
protected void
PriceListValidator. validatePriceModifier(PriceList priceList, org.springframework.validation.Errors errors)
protected void
PriceListValidator. validateUserTargets(PriceList priceList, org.springframework.validation.Errors errors)
Method parameters in com.broadleafcommerce.pricing.service.validation with type arguments of type PriceList Modifier and Type Method Description void
PriceDataValidator. setPriceListService(PriceListService<PriceList> priceListService)
void
PriceListValidator. setPriceListService(PriceListService<PriceList> priceListService)
-
Uses of PriceList in com.broadleafcommerce.pricing.web.endpoint
Methods in com.broadleafcommerce.pricing.web.endpoint that return PriceList Modifier and Type Method Description PriceList
PriceListEndpoint. createPriceList(javax.servlet.http.HttpServletRequest request, String type, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, PriceList priceList)
PriceList
PriceListEndpoint. readPriceListById(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String priceListId)
PriceList
PriceListEndpoint. readPriceListByTypeAndId(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String priceListId)
PriceList
PriceListEndpoint. replacePriceList(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
PriceList
PriceListEndpoint. replacePriceListWithType(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
PriceList
PriceListEndpoint. resolvePriceList(String priceListId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
PriceList
PriceListEndpoint. updatePriceList(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
PriceList
PriceListEndpoint. updatePriceListWithType(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
Methods in com.broadleafcommerce.pricing.web.endpoint that return types with arguments of type PriceList Modifier and Type Method Description org.springframework.data.domain.Page<PriceList>
PriceListEndpoint. readAllContractPriceLists(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String name, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters)
org.springframework.data.domain.Page<PriceList>
PriceListEndpoint. readAllPriceLists(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String name, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters)
org.springframework.data.domain.Page<PriceList>
PriceListEndpoint. readAllSalePriceLists(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String name, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters)
org.springframework.data.domain.Page<PriceList>
PriceListEndpoint. readAllStandardPriceLists(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String name, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters)
Methods in com.broadleafcommerce.pricing.web.endpoint with parameters of type PriceList Modifier and Type Method Description PriceList
PriceListEndpoint. createPriceList(javax.servlet.http.HttpServletRequest request, String type, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, PriceList priceList)
PriceList
PriceListEndpoint. replacePriceList(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
PriceList
PriceListEndpoint. replacePriceListWithType(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
PriceList
PriceListEndpoint. updatePriceList(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
PriceList
PriceListEndpoint. updatePriceListWithType(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceList priceList)
Constructor parameters in com.broadleafcommerce.pricing.web.endpoint with type arguments of type PriceList Constructor Description PriceListEndpoint(PriceListService<PriceList> service, PriceDataService<PriceData> priceDataService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, PricingCurrencyHelper pricingCurrencyHelper)
-