Package de.hybris.y2ysync.model
Class Y2YStreamConfigurationValidateInterceptor
java.lang.Object
de.hybris.y2ysync.model.Y2YStreamConfigurationValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<Y2YStreamConfigurationModel>
public class Y2YStreamConfigurationValidateInterceptor
extends Object
implements ValidateInterceptor<Y2YStreamConfigurationModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Y2YStreamConfigurationModel streamConfiguration, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetTypeService(TypeService typeService)
-
Constructor Details
-
Y2YStreamConfigurationValidateInterceptor
public Y2YStreamConfigurationValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(Y2YStreamConfigurationModel streamConfiguration, InterceptorContext ctx) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<Y2YStreamConfigurationModel>- Parameters:
streamConfiguration- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
setTypeService
-