Interface CustomizedPriceListRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Known Subinterfaces:
JpaPriceListRepository<D>,PriceListRepository<D>
- All Known Implementing Classes:
JpaCustomizedPriceListRepository
public interface CustomizedPriceListRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>findAllByContextIdIn(Iterable<String> contextId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findAllByCurrencyIn(List<javax.money.CurrencyUnit> currencies, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) The common use-case will be to find all persistentPriceListsthat target a given currency or fallback currency.findAllByUserTargetsInAndCurrencyIn(Iterable<UserTarget> userTargets, Iterable<javax.money.CurrencyUnit> currencies, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) The common use-case will be to find all persistentPriceListswhosePriceList.getUserTargets()intersect with theuserTargetsprovided that match the passed in currencies.findAllByVendorAndCurrencyIn(List<String> vendorRefs, List<javax.money.CurrencyUnit> currencies, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all PriceLists that match one of the passed in currencies and one of the passed in vendors.
-
Method Details
-
findAllByUserTargetsInAndCurrencyIn
@NonNull List<D> findAllByUserTargetsInAndCurrencyIn(@NonNull Iterable<UserTarget> userTargets, @NonNull Iterable<javax.money.CurrencyUnit> currencies, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) The common use-case will be to find all persistentPriceListswhosePriceList.getUserTargets()intersect with theuserTargetsprovided that match the passed in currencies. -
findAllByCurrencyIn
@NonNull List<D> findAllByCurrencyIn(@NonNull List<javax.money.CurrencyUnit> currencies, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) The common use-case will be to find all persistentPriceListsthat target a given currency or fallback currency. This method will not return vendor price lists. To return vendor price lists, call the related methodfindAllByVendorAndCurrencyIn(java.util.List<java.lang.String>, java.util.List<javax.money.CurrencyUnit>, com.broadleafcommerce.data.tracking.core.context.ContextInfo) -
findAllByVendorAndCurrencyIn
List<D> findAllByVendorAndCurrencyIn(@NonNull List<String> vendorRefs, @NonNull List<javax.money.CurrencyUnit> currencies, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all PriceLists that match one of the passed in currencies and one of the passed in vendors.findAllByVendorAndCurrencyIn(java.util.List<java.lang.String>, java.util.List<javax.money.CurrencyUnit>, com.broadleafcommerce.data.tracking.core.context.ContextInfo) -
findAllByContextIdIn
-