PriceRuleConditionalProductsAssignedValidator
and others.
Validate Interceptor on AbstractBundleRuleModel that validates that a bundle rule
@Deprecated public class AbstractBundleRuleValidator extends Object implements ValidateInterceptor
| Constructor and Description |
|---|
AbstractBundleRuleValidator()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<ProductModel> |
collectAllowedConditionalProducts(BundleTemplateModel component)
Deprecated.
Returns a combined list of all
ProductModels that are included in the products sets of a bundle's
components |
protected BundleTemplateModel |
getComponentFromRule(AbstractBundleRuleModel bundleRule)
Deprecated.
|
protected Collection<ProductModel> |
getConditionalProductsFromRule(AbstractBundleRuleModel bundleRule)
Deprecated.
|
protected String |
getInvalidProductsAsString(Collection<ProductModel> allowedProducts,
Collection<ProductModel> currentProducts)
Deprecated.
|
protected Collection<ProductModel> |
getTargetProductsFromRule(AbstractBundleRuleModel bundleRule)
Deprecated.
|
void |
onValidate(Object model,
InterceptorContext ctx)
Deprecated.
Called in the
modelService.saveAll() method. |
public void onValidate(Object model, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected Collection<ProductModel> getTargetProductsFromRule(AbstractBundleRuleModel bundleRule)
protected Collection<ProductModel> getConditionalProductsFromRule(AbstractBundleRuleModel bundleRule)
protected BundleTemplateModel getComponentFromRule(AbstractBundleRuleModel bundleRule)
protected List<ProductModel> collectAllowedConditionalProducts(BundleTemplateModel component)
ProductModels that are included in the products sets of a bundle's
componentscomponent - BundleTemplateModelidentifies the bundle and its components in order to merge the products setsList of ProductModelsprotected String getInvalidProductsAsString(Collection<ProductModel> allowedProducts, Collection<ProductModel> currentProducts)
Copyright © 2017 SAP SE. All Rights Reserved.