Class CMSContentSlotPrepareInterceptor
java.lang.Object
de.hybris.platform.cms2.servicelayer.interceptor.impl.CMSContentSlotPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ContentSlotModel>
public class CMSContentSlotPrepareInterceptor
extends Object
implements PrepareInterceptor<ContentSlotModel>
-
Constructor Summary
ConstructorsConstructorDescriptionCMSContentSlotPrepareInterceptor(CMSContentSlotService cmsContentSlotService, ModelService modelService, ItemModelPrepareInterceptorService itemModelPrepareInterceptorService) -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSContentSlotServiceprotected ItemModelPrepareInterceptorServiceprotected ModelServicevoidonPrepare(ContentSlotModel contentSlotModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
CMSContentSlotPrepareInterceptor
public CMSContentSlotPrepareInterceptor(CMSContentSlotService cmsContentSlotService, ModelService modelService, ItemModelPrepareInterceptorService itemModelPrepareInterceptorService)
-
-
Method Details
-
onPrepare
public void onPrepare(ContentSlotModel contentSlotModel, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<ContentSlotModel>- Parameters:
contentSlotModel- the model which values has to be preparedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getCmsContentSlotService
-
getModelService
-
getItemModelPrepareInterceptorService
-