Package de.hybris.platform.product.impl
Class PDTRowPrepareInterceptor
java.lang.Object
de.hybris.platform.product.impl.PDTRowPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
- Direct Known Subclasses:
DiscountRowPrepareInterceptor,GlobalDiscountRowPrepareInterceptor,PriceRowPrepareInterceptor,TaxRowPrepareInterceptor
PrepareInterceptor for the PDTRowModels.
Contains common logic for the PDTRowModel subtypes, like updating the product and user match qualifiers or
handling the Product/ProductGroup or User/UserGroup-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidhandleUserAndUserGroup(PDTRowModel model, InterceptorContext ctx) voidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetCatalogTypeService(CatalogTypeService catalogTypeService) voidsetPdtProductModificationMarker(PDTProductModificationMarker pdtProductModificationMarker) voidsetTypeService(TypeService typeService) protected abstract voidupdateCatalogVersion(PDTRowModel pdtModel) protected voidupdateProductMatchQualifier(PDTRowModel prModel, InterceptorContext ctx) protected voidupdateUserMatchQualifier(PDTRowModel prModel, InterceptorContext ctx)
-
Constructor Details
-
PDTRowPrepareInterceptor
public PDTRowPrepareInterceptor()
-
-
Method Details
-
setCatalogTypeService
-
setTypeService
-
setPdtProductModificationMarker
public void setPdtProductModificationMarker(PDTProductModificationMarker pdtProductModificationMarker) -
getCatalogTypeService
-
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
-
updateProductMatchQualifier
protected void updateProductMatchQualifier(PDTRowModel prModel, InterceptorContext ctx) throws InterceptorException - Throws:
InterceptorException
-
updateUserMatchQualifier
protected void updateUserMatchQualifier(PDTRowModel prModel, InterceptorContext ctx) throws InterceptorException - Throws:
InterceptorException
-
handleProductAndProductGroup
protected void handleProductAndProductGroup(PDTRowModel model, InterceptorContext ctx) throws InterceptorException - Throws:
InterceptorException
-
handleUserAndUserGroup
protected void handleUserAndUserGroup(PDTRowModel model, InterceptorContext ctx) throws InterceptorException - Throws:
InterceptorException
-
updateCatalogVersion
-