public abstract class PDTRowPrepareInterceptor extends java.lang.Object implements PrepareInterceptor
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 and Description |
|---|
PDTRowPrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
CatalogTypeService |
getCatalogTypeService() |
protected void |
handleProductAndProductGroup(PDTRowModel model,
InterceptorContext ctx) |
protected void |
handleUserAndUserGroup(PDTRowModel model,
InterceptorContext ctx) |
void |
onPrepare(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setCatalogTypeService(CatalogTypeService catalogTypeService) |
void |
setPdtProductModificationMarker(PDTProductModificationMarker pdtProductModificationMarker) |
void |
setTypeService(TypeService typeService) |
protected abstract void |
updateCatalogVersion(PDTRowModel pdtModel) |
protected void |
updateProductMatchQualifier(PDTRowModel prModel,
InterceptorContext ctx) |
protected void |
updateUserMatchQualifier(PDTRowModel prModel,
InterceptorContext ctx) |
public void setCatalogTypeService(CatalogTypeService catalogTypeService)
public void setTypeService(TypeService typeService)
public void setPdtProductModificationMarker(PDTProductModificationMarker pdtProductModificationMarker)
public CatalogTypeService getCatalogTypeService()
public void onPrepare(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptormodel - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationprotected void updateProductMatchQualifier(PDTRowModel prModel, InterceptorContext ctx) throws InterceptorException
InterceptorExceptionprotected void updateUserMatchQualifier(PDTRowModel prModel, InterceptorContext ctx) throws InterceptorException
InterceptorExceptionprotected void handleProductAndProductGroup(PDTRowModel model, InterceptorContext ctx) throws InterceptorException
InterceptorExceptionprotected void handleUserAndUserGroup(PDTRowModel model, InterceptorContext ctx) throws InterceptorException
InterceptorExceptionprotected abstract void updateCatalogVersion(PDTRowModel pdtModel)
Copyright © 2018 SAP SE. All Rights Reserved.