Class SourceRuleTemplateValidateInterceptor
java.lang.Object
de.hybris.platform.ruleengineservices.rule.interceptors.SourceRuleTemplateValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
Load interceptor for
SourceRuleTemplateModel which checks if the representations of conditions and actions
are valid.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected L10NServicevoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetL10NService(L10NService l10NService) voidsetRuleActionsRegistry(RuleActionsRegistry ruleActionsRegistry) voidsetRuleActionsService(RuleActionsService ruleActionsService) voidsetRuleConditionsRegistry(RuleConditionsRegistry ruleConditionsRegistry) voidsetRuleConditionsService(RuleConditionsService ruleConditionsService) voidsetRuleService(RuleService ruleService)
-
Constructor Details
-
SourceRuleTemplateValidateInterceptor
public SourceRuleTemplateValidateInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getRuleConditionsService
-
setRuleConditionsService
-
getRuleActionsService
-
setRuleActionsService
-
getRuleConditionsRegistry
-
setRuleConditionsRegistry
-
getRuleActionsRegistry
-
setRuleActionsRegistry
-
getRuleService
-
setRuleService
-
getL10NService
-
setL10NService
-