Class ConsignmentPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.marketplaceservices.interceptor.ConsignmentPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ConsignmentModel>
public class ConsignmentPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<ConsignmentModel>
Assign total price to consignment
-
-
Constructor Summary
Constructors Constructor Description ConsignmentPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VendorOrderTotalPriceCalculationStrategygetVendorOrderTotalPriceCalculationStrategy()voidonPrepare(ConsignmentModel consignment, InterceptorContext paramInterceptorContext)Called in themodelService.saveAll()method.voidsetVendorOrderTotalPriceCalculationStrategy(VendorOrderTotalPriceCalculationStrategy vendorOrderTotalPriceCalculationStrategy)
-
-
-
Method Detail
-
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
protected VendorOrderTotalPriceCalculationStrategy getVendorOrderTotalPriceCalculationStrategy()
-
setVendorOrderTotalPriceCalculationStrategy
public void setVendorOrderTotalPriceCalculationStrategy(VendorOrderTotalPriceCalculationStrategy vendorOrderTotalPriceCalculationStrategy)
-
-