Class CatalogVersionPrepareInterceptor
java.lang.Object
de.hybris.platform.catalog.interceptors.CatalogVersionPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
- Direct Known Subclasses:
BackofficeCatalogVersionPrepareInterceptor
Interceptor sets this catalog version as
CatalogModel.ACTIVECATALOGVERSION if the
CatalogVersionModel.ACTIVE flag was set to TRUE.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignCurrentUserReadWritePermissions(CatalogVersionModel catalogVersion, InterceptorContext ctx) voidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetUserService(UserService userService)
-
Constructor Details
-
CatalogVersionPrepareInterceptor
public CatalogVersionPrepareInterceptor()
-
-
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
-
assignCurrentUserReadWritePermissions
protected void assignCurrentUserReadWritePermissions(CatalogVersionModel catalogVersion, InterceptorContext ctx) -
setUserService
-