Class ConsignmentPrepareInterceptor
java.lang.Object
de.hybris.platform.marketplaceservices.interceptor.ConsignmentPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ConsignmentModel>
public class ConsignmentPrepareInterceptor
extends Object
implements PrepareInterceptor<ConsignmentModel>
Assign total price to consignment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VendorOrderTotalPriceCalculationStrategyvoidonPrepare(ConsignmentModel consignment, InterceptorContext paramInterceptorContext) Called in themodelService.saveAll()method.voidsetVendorOrderTotalPriceCalculationStrategy(VendorOrderTotalPriceCalculationStrategy vendorOrderTotalPriceCalculationStrategy)
-
Constructor Details
-
ConsignmentPrepareInterceptor
public ConsignmentPrepareInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(ConsignmentModel consignment, InterceptorContext paramInterceptorContext) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<ConsignmentModel>- Parameters:
consignment- the model which values has to be preparedparamInterceptorContext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getVendorOrderTotalPriceCalculationStrategy
-
setVendorOrderTotalPriceCalculationStrategy
public void setVendorOrderTotalPriceCalculationStrategy(VendorOrderTotalPriceCalculationStrategy vendorOrderTotalPriceCalculationStrategy)
-