Class DefaultOrderPrepareInterceptor
java.lang.Object
de.hybris.platform.order.interceptors.DefaultOrderPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
Automatically clones the order's elements:
If the cloned elements are clones themselves, the interceptor removes them.
AbstractOrderModel.PAYMENTINFO,AbstractOrderModel.PAYMENTADDRESSAbstractOrderModel.DELIVERYADDRESS
If the cloned elements are clones themselves, the interceptor removes them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetOrderPartOfMembersCloningStrategy(OrderPartOfMembersCloningStrategy orderPartOfMembersCloningStrategy)
-
Constructor Details
-
DefaultOrderPrepareInterceptor
public DefaultOrderPrepareInterceptor()
-
-
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
-
setOrderPartOfMembersCloningStrategy
public void setOrderPartOfMembersCloningStrategy(OrderPartOfMembersCloningStrategy orderPartOfMembersCloningStrategy)
-