public interface PriceListDao
| Modifier and Type | Method and Description |
|---|---|
Long |
getCurrentDateResolution()
Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
List<PriceList> |
readAllActiveAndFuturePriceListsByType(PriceListType priceListType)
Returns a list of PriceLists for a given
PriceListType. |
List<PriceList> |
readAllActiveAndFuturePriceListsByTypes(List<PriceListType> priceListTypes) |
List<PriceList> |
readAllPriceListsByType(PriceListType priceListType)
Returns a list of PriceLists for a given
PriceListType. |
List<PriceList> |
readAllStandardPriceLists()
Returns a list of standard PriceLists.
|
List<PriceList> |
readNotDirectlyAssignedPriceListsByType(PriceListType priceListType) |
ProductSkuPriceDataDTOCache |
readPriceDataForProducts(List<org.broadleafcommerce.core.catalog.domain.Product> productIds)
For the given productIds, return a Map of productId to a Map of skuId and PriceDataDTO.
|
SkuPriceData |
readPriceForSku(PriceList priceList,
org.broadleafcommerce.core.catalog.domain.Sku sku)
Return a SKUPriceData item from a price list if one exists.
|
PriceList |
readPriceListById(Long priceListId)
Retrieve a
PriceList instance by its primary key |
List<PriceList> |
readRuleBasedPriceListsByType(PriceListType priceListType) |
void |
removeAllFromPricingDataCache()
Remove all members from the pricing cache.
|
void |
removeFromPricingDataCache(SkuPriceData skuPriceData)
Remove a member from the pricing cache.
|
PriceList |
savePriceList(PriceList priceList)
Persists a price list.
|
void |
setCurrentDateResolution(Long currentDateResolution)
Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
@Nonnull PriceList readPriceListById(@Nonnull Long priceListId)
PriceList instance by its primary keypriceListId - the primary key of the priceListList<PriceList> readAllActiveAndFuturePriceListsByType(PriceListType priceListType)
PriceListType. Will order these price
lists by priority with nulls being considered a lower priority than a set value.
Also excludes PriceLists whose PriceList.getRequireAssignmentToCustomer() is true.PriceListsList<PriceList> readAllPriceListsByType(PriceListType priceListType)
PriceListType. Will order these price
lists by priority with nulls being considered a lower priority than a set value.
Filters out PriceLists that are inactive based on the start and end dates.
Also excludes PriceLists whose PriceList.getRequireAssignmentToCustomer() is true.PriceListsList<PriceList> readNotDirectlyAssignedPriceListsByType(PriceListType priceListType)
priceListType - List<PriceList> readRuleBasedPriceListsByType(PriceListType priceListType)
priceListType - List<PriceList> readAllStandardPriceLists()
PriceList.getRequireAssignmentToCustomer() is true.PriceListsPriceList savePriceList(PriceList priceList)
priceList - SkuPriceData readPriceForSku(PriceList priceList, org.broadleafcommerce.core.catalog.domain.Sku sku)
List<PriceList> readAllActiveAndFuturePriceListsByTypes(List<PriceListType> priceListTypes)
void removeFromPricingDataCache(SkuPriceData skuPriceData)
skuPriceData - void removeAllFromPricingDataCache()
ProductSkuPriceDataDTOCache readPriceDataForProducts(List<org.broadleafcommerce.core.catalog.domain.Product> productIds)
productIds - Long getCurrentDateResolution()
void setCurrentDateResolution(Long currentDateResolution)
currentDateResolution - the milliseconds to cache the current date/timeCopyright © 2020. All rights reserved.