Class CxConfigValidationInterceptor
- java.lang.Object
-
- de.hybris.platform.personalizationservices.configuration.impl.CxConfigValidationInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<CxConfigModel>
public class CxConfigValidationInterceptor extends java.lang.Object implements ValidateInterceptor<CxConfigModel>
-
-
Constructor Summary
Constructors Constructor Description CxConfigValidationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetConsentTemplateFriendlyName(ConsentTemplateModel consentTemplate)voidonValidate(CxConfigModel model, InterceptorContext context)Called in themodelService.saveAll()method.
-
-
-
Method Detail
-
onValidate
public void onValidate(CxConfigModel model, InterceptorContext context) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<CxConfigModel>- Parameters:
model- the model which values has to be validatedcontext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getConsentTemplateFriendlyName
protected java.lang.String getConsentTemplateFriendlyName(ConsentTemplateModel consentTemplate)
-
-