Class RelatedPagePrepareInterceptor
java.lang.Object
de.hybris.platform.cms2.servicelayer.interceptor.impl.RelatedPagePrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ItemModel>
Prepare interceptor to intercept all save/change operations related to
ItemModel performed in the non-active
catalog versions. The interceptor will reject pages, by updating their approval status attribute, that are related to
the provided ItemModel.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemModelPrepareInterceptorServiceprotected RelatedPageRejectionServicevoidonPrepare(ItemModel itemModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.voidsetItemModelPrepareInterceptorService(ItemModelPrepareInterceptorService itemModelPrepareInterceptorService) voidsetRelatedPageRejectionService(RelatedPageRejectionService relatedPageRejectionService)
-
Constructor Details
-
RelatedPagePrepareInterceptor
public RelatedPagePrepareInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(ItemModel itemModel, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<ItemModel>- Parameters:
itemModel- the model which values has to be preparedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getRelatedPageRejectionService
-
getItemModelPrepareInterceptorService
-
setItemModelPrepareInterceptorService
public void setItemModelPrepareInterceptorService(ItemModelPrepareInterceptorService itemModelPrepareInterceptorService)
-