Class CampaignRuleValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.interceptors.CampaignRuleValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<CampaignModel>
public class CampaignRuleValidateInterceptor extends java.lang.Object implements ValidateInterceptor<CampaignModel>
Instance ofValidateInterceptormonitoring the campaign rule removal
-
-
Constructor Summary
Constructors Constructor Description CampaignRuleValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<SourceRuleModel>getFrozenAssociatedSourceRules(CampaignModel campaign)voidonValidate(CampaignModel campaign, InterceptorContext ctx)Called in themodelService.saveAll()method.
-
-
-
Method Detail
-
onValidate
public void onValidate(CampaignModel campaign, InterceptorContext ctx) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<CampaignModel>- Parameters:
campaign- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getFrozenAssociatedSourceRules
protected java.util.Set<SourceRuleModel> getFrozenAssociatedSourceRules(CampaignModel campaign)
-
-