Class B2BCommentPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.b2b.interceptor.B2BCommentPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
public class B2BCommentPrepareInterceptor extends java.lang.Object implements PrepareInterceptor
Sets the owner and modifiedDate attribute of aB2BCommentModel
-
-
Constructor Summary
Constructors Constructor Description B2BCommentPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserServicegetUserService()voidonPrepare(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetUserService(UserService userService)
-
-
-
Method Detail
-
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
-
setUserService
public void setUserService(UserService userService)
-
getUserService
protected UserService getUserService()
-
-