Class SapOutboundIdPrepareInterceptor
- java.lang.Object
-
- com.hybris.ymkt.common.interceptor.SapOutboundIdPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AbstractOrderModel>
public class SapOutboundIdPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<AbstractOrderModel>
Look into the user session for the soid and setYmktTrackingId on AbstractOrderModel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringSAP_OUTBOUND_IDprotected SessionServicesessionService
-
Constructor Summary
Constructors Constructor Description SapOutboundIdPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPrepare(AbstractOrderModel model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetSessionService(SessionService sessionService)
-
-
-
Field Detail
-
SAP_OUTBOUND_ID
protected static final java.lang.String SAP_OUTBOUND_ID
- See Also:
- Constant Field Values
-
sessionService
protected SessionService sessionService
-
-
Method Detail
-
onPrepare
public void onPrepare(AbstractOrderModel model, InterceptorContext ctx) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AbstractOrderModel>- Parameters:
model- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
setSessionService
public void setSessionService(SessionService sessionService)
-
-