public interface RuleEngineContextFinderStrategy
| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractRuleEngineContextModel,O extends AbstractOrderModel> |
findRuleEngineContext(O order,
RuleType ruleType)
Given the order, finds the rule engine context, compatible with specified rule type
|
<T extends AbstractRuleEngineContextModel> |
findRuleEngineContext(ProductModel product,
RuleType ruleType)
Given the product, finds the rule engine context, compatible with specified rule type
|
<T extends AbstractRuleEngineContextModel> |
findRuleEngineContext(RuleType ruleType)
Finds rule engine contexts for the given rule type.
|
<T extends AbstractRuleEngineContextModel> |
getRuleEngineContextForCatalogVersions(java.util.Collection<CatalogVersionModel> catalogVersions,
RuleType ruleType)
Finds rule engine contexts for the given catalog versions and rule type.
|
<T extends AbstractRuleEngineContextModel> java.util.Optional<T> findRuleEngineContext(RuleType ruleType)
ruleType - the rule type to look up rule engine contexts forIllegalStateException<T extends AbstractRuleEngineContextModel,O extends AbstractOrderModel> java.util.Optional<T> findRuleEngineContext(O order, RuleType ruleType)
order - the order, for which we need to find the rule engine contextruleType - filters to return only mappings which rules module is of the given rule type<T extends AbstractRuleEngineContextModel> java.util.Optional<T> findRuleEngineContext(ProductModel product, RuleType ruleType)
product - the product, for which we need to find the rule engine contextruleType - filters to return only mappings which rules module is of the given rule type<T extends AbstractRuleEngineContextModel> java.util.Optional<T> getRuleEngineContextForCatalogVersions(java.util.Collection<CatalogVersionModel> catalogVersions, RuleType ruleType)
IllegalStateException exception.catalogVersions - collection of catalog versions to perform look up of engine context forruleType - the rule type to look up rule engine context for{@link - IllegalStateException} in case multiple rule engine contexts have been found in the system that are
compatible with the provided parameter setCopyright © 2018 SAP SE. All Rights Reserved.