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
public abstract class PDTRowPrepareInterceptor extends java.lang.Object implements PrepareInterceptor
PrepareInterceptorfor thePDTRowModels. Contains common logic for thePDTRowModelsubtypes, like updating the product and user match qualifiers or handling the Product/ProductGroup or User/UserGroup
-
-
Constructor Summary
Constructors Constructor Description PDTRowPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CatalogTypeServicegetCatalogTypeService()protected voidhandleProductAndProductGroup(PDTRowModel model, InterceptorContext ctx)protected voidhandleUserAndUserGroup(PDTRowModel model, InterceptorContext ctx)voidonPrepare(java.lang.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)
-
-
-
Method Detail
-
setCatalogTypeService
public void setCatalogTypeService(CatalogTypeService catalogTypeService)
-
setTypeService
public void setTypeService(TypeService typeService)
-
setPdtProductModificationMarker
public void setPdtProductModificationMarker(PDTProductModificationMarker pdtProductModificationMarker)
-
getCatalogTypeService
public CatalogTypeService getCatalogTypeService()
-
onPrepare
public void onPrepare(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
protected abstract void updateCatalogVersion(PDTRowModel pdtModel)
-
-