public class DefaultBundleRuleService extends DefaultBundleCommerceRuleService
BundleRuleService. It uses Flexible Search queries and Java
Code to find the lowest price (based on bundle price rules) for a product that is or will be part of a bundle.| Constructor and Description |
|---|
DefaultBundleRuleService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createMessageForDisableRule(DisableProductBundleRuleModel disableRule,
ProductModel product)
Generates the message explaining why given product is disabled with specific rule.
|
ChangeProductPriceBundleRuleModel |
getChangePriceBundleRuleForOrderEntry(AbstractOrderEntryModel entry)
Returns a
ChangeProductPriceBundleRuleModel valid for the given orderEntryModel. |
checkBundleRuleForConditionalProduct, checkBundleRuleForTargetProduct, checkRuleIsFulfilled, evaluateBundleRules, getBundleTemplateService, getCartEntryDao, getCartProductsInSameBundle, getCartProductsInSameBundle, getChangePriceBundleRule, getChangePriceBundleRule, getChangePriceBundleRuleWithLowestPrice, getChangeProductPriceBundleRuleDao, getDisableProductBundleRuleDao, getDisableProductBundleRules, getDisableRuleForBundleProduct, getDisableRuleForBundleProduct, getEntryGroupService, getL10NService, getLowestPriceForTargetProductAndTemplate, getModelService, getSearchRestrictionService, getSessionService, setBundleTemplateService, setCartEntryDao, setChangeProductPriceBundleRuleDao, setDisableProductBundleRuleDao, setEntryGroupService, setL10NService, setModelService, setSearchRestrictionService, setSessionService, unrestrictedpublic ChangeProductPriceBundleRuleModel getChangePriceBundleRuleForOrderEntry(AbstractOrderEntryModel entry)
BundleRuleServiceChangeProductPriceBundleRuleModel valid for the given orderEntryModel. The method
calculates the lowest product price for the product in the given orderEntryModel which is added to a
bundle. The calculation is based on the entry's bundle template and the other products in the same bundle
(conditional products)getChangePriceBundleRuleForOrderEntry in interface BundleRuleServicegetChangePriceBundleRuleForOrderEntry in class DefaultBundleCommerceRuleServiceentry - entry that is added to the cart as part of a bundleChangeProductPriceBundleRuleModel if existing or nullpublic java.lang.String createMessageForDisableRule(DisableProductBundleRuleModel disableRule, ProductModel product)
BundleRuleServicecreateMessageForDisableRule in interface BundleRuleServicecreateMessageForDisableRule in class DefaultBundleCommerceRuleServicedisableRule - DisableProductBundleRuleModel which disabled given product for specific conditional productsproduct - Disabled productCopyright © 2018 SAP SE. All Rights Reserved.