Class YFormDataPrepareInterceptor
java.lang.Object
de.hybris.platform.xyformsservices.interceptors.YFormDataPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<YFormDataModel>
public class YFormDataPrepareInterceptor
extends Object
implements PrepareInterceptor<YFormDataModel>
PrepareInterceptor to create YFormDataHistory entry when YFormData gets saved
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelServicevoidonPrepare(YFormDataModel yFormData, InterceptorContext paramInterceptorContext) Called in themodelService.saveAll()method.voidsetModelService(ModelService modelService)
-
Constructor Details
-
YFormDataPrepareInterceptor
public YFormDataPrepareInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(YFormDataModel yFormData, InterceptorContext paramInterceptorContext) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<YFormDataModel>- Parameters:
yFormData- the model which values has to be preparedparamInterceptorContext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getModelService
-
setModelService
-