Class CMSAbstractRestrictionPrepareInterceptor
java.lang.Object
de.hybris.platform.cms2.servicelayer.interceptor.impl.CMSAbstractRestrictionPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AbstractRestrictionModel>
public class CMSAbstractRestrictionPrepareInterceptor
extends Object
implements PrepareInterceptor<AbstractRestrictionModel>
-
Constructor Summary
ConstructorsConstructorDescriptionCMSAbstractRestrictionPrepareInterceptor(ModelService modelService, ItemModelPrepareInterceptorService itemModelPrepareInterceptorService, CMSRestrictionService cmsRestrictionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSRestrictionServiceprotected ItemModelPrepareInterceptorServiceprotected ModelServiceprotected RelatedItemsServicevoidonPrepare(AbstractRestrictionModel restrictionModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.voidsetPageTypePredicate(Predicate<ItemModel> pageTypePredicate) voidsetRelatedItemsService(RelatedItemsService relatedItemsService)
-
Constructor Details
-
CMSAbstractRestrictionPrepareInterceptor
public CMSAbstractRestrictionPrepareInterceptor(ModelService modelService, ItemModelPrepareInterceptorService itemModelPrepareInterceptorService, CMSRestrictionService cmsRestrictionService)
-
-
Method Details
-
onPrepare
public void onPrepare(AbstractRestrictionModel restrictionModel, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AbstractRestrictionModel>- Parameters:
restrictionModel- the model which values has to be preparedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getItemModelPrepareInterceptorService
-
getCmsRestrictionService
-
getModelService
-
getRelatedItemsService
-
getPageTypePredicate
-
setPageTypePredicate
-