Class CommentPreparer
java.lang.Object
de.hybris.platform.comments.interceptors.CommentPreparer
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
PrepareInterceptor for the
CommentModel.
- Sets an unique id for the CommentModel.code attribute.
- Deletes comments meta-data (CommentMetadata) that hold information about items that are not linked anymore.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetKeyGenerator(KeyGenerator keyGenerator) voidsetModelService(ModelService modelService)
-
Constructor Details
-
CommentPreparer
public CommentPreparer()
-
-
Method Details
-
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
-
setKeyGenerator
-
setModelService
-