Class CatalogPrepareInterceptor
java.lang.Object
de.hybris.platform.catalog.interceptors.CatalogPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
The interceptor sets proper
CatalogVersionModel.ACTIVE flags on catalog versions whenever
CatalogModel.ACTIVECATALOGVERSION is modified.
Prepare method throws InterceptorException in case when CatalogModel.ACTIVECATALOGVERSION was set with
CatalogVersionModel not belonging to the CatalogModel being modified.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetCatalogService(CatalogService catalogService)
-
Constructor Details
-
CatalogPrepareInterceptor
public CatalogPrepareInterceptor()
-
-
Method Details
-
onPrepare
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor- Parameters:
model- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
setCatalogService
-