public interface BundleRuleDao<R extends AbstractBundleRuleModel>
AbstractBundleRuleModel.| Modifier and Type | Method and Description |
|---|---|
List<R> |
findBundleRulesByProductAndRootTemplate(ProductModel product,
BundleTemplateModel rootBundleTemplate)
Find all
AbstractBundleRuleModels that are assigned to any of the given rootBundleTemplate's
child components and have the given product either as target product or as conditional product. |
List<R> |
findBundleRulesByTargetProduct(ProductModel targetProduct)
Find all
AbstractBundleRuleModels that have the given targetProduct as target product. |
List<R> |
findBundleRulesByTargetProductAndTemplate(ProductModel targetProduct,
BundleTemplateModel bundleTemplate)
Find all
AbstractBundleRuleModels that are assigned to the given bundleTemplate and have the
given targetProduct as target product. |
List<R> findBundleRulesByTargetProduct(ProductModel targetProduct)
AbstractBundleRuleModels that have the given targetProduct as target product.targetProduct - the target ProductModel of the bundle ruleList of AbstractBundleRuleModels or empty List.List<R> findBundleRulesByTargetProductAndTemplate(ProductModel targetProduct, BundleTemplateModel bundleTemplate)
AbstractBundleRuleModels that are assigned to the given bundleTemplate and have the
given targetProduct as target product.targetProduct - the target ProductModel of the bundle rulebundleTemplate - the BundleTemplateModel the bundle rule is assigned toList of AbstractBundleRuleModels or empty List.List<R> findBundleRulesByProductAndRootTemplate(ProductModel product, BundleTemplateModel rootBundleTemplate)
AbstractBundleRuleModels that are assigned to any of the given rootBundleTemplate's
child components and have the given product either as target product or as conditional product.product - the ProductModel that is added to cartrootBundleTemplate - the root BundleTemplateModel. Only DisableProductBundleRuleModels that are assigned to
any of the rootBundleTemplate's child components, are retrieved.List of AbstractBundleRuleModels or empty List.Copyright © 2017 SAP SE. All Rights Reserved.