Class YFormDataPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.xyformsservices.interceptors.YFormDataPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<YFormDataModel>
public class YFormDataPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<YFormDataModel>
PrepareInterceptor to create YFormDataHistory entry when YFormData gets saved
-
-
Constructor Summary
Constructors Constructor Description YFormDataPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModelServicegetModelService()voidonPrepare(YFormDataModel yFormData, InterceptorContext paramInterceptorContext)Called in themodelService.saveAll()method.voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
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
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-