Class CsCustomerEventPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.ticket.interceptors.CsCustomerEventPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
public class CsCustomerEventPrepareInterceptor extends java.lang.Object implements PrepareInterceptor
The interceptor sets properAbstractCommentModel.SUBJECTfor the purpose of AuditReport
-
-
Constructor Summary
Constructors Constructor Description CsCustomerEventPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanSubjectBePopulated(CsCustomerEventModel event, CsTicketModel ticket)protected TicketServicegetTicketService()voidonPrepare(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetTicketService(TicketService ticketService)
-
-
-
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
-
canSubjectBePopulated
protected boolean canSubjectBePopulated(CsCustomerEventModel event, CsTicketModel ticket)
-
getTicketService
protected TicketService getTicketService()
-
setTicketService
public void setTicketService(TicketService ticketService)
-
-