Class DefaultOrderUtilityImpl
- java.lang.Object
-
- de.hybris.platform.orderscheduling.impl.DefaultOrderUtilityImpl
-
- All Implemented Interfaces:
OrderUtility
public class DefaultOrderUtilityImpl extends java.lang.Object implements OrderUtility
The Class DefaultOrderUtilityImpl. This is a preliminary release of a new functionality. It is incomplete and subject to change in future versions. Use at your own risk.
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderUtilityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderModel
createOrderFromCart(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo)
Creates the order from cart.OrderModel
createOrderFromOrderTemplate(OrderModel template)
Creates the order from order template.protected CalculationService
getCalculationService()
ModelService
getModelService()
OrderService
getOrderService()
void
runOrder(OrderModel order)
Run order.OrderModel
runScheduledOrder(OrderModel order)
Run scheduled order.void
setCalculationService(CalculationService calculationService)
void
setModelService(ModelService modelService)
void
setOrderService(OrderService orderService)
-
-
-
Method Detail
-
createOrderFromCart
public OrderModel createOrderFromCart(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) throws InvalidCartException
Description copied from interface:OrderUtility
Creates the order from cart.- Specified by:
createOrderFromCart
in interfaceOrderUtility
- Parameters:
cart
- the cart- Returns:
- OrderModel
- Throws:
InvalidCartException
-
createOrderFromOrderTemplate
public OrderModel createOrderFromOrderTemplate(OrderModel template)
Description copied from interface:OrderUtility
Creates the order from order template.- Specified by:
createOrderFromOrderTemplate
in interfaceOrderUtility
- Parameters:
template
- the template- Returns:
- OrderModel
-
runScheduledOrder
public OrderModel runScheduledOrder(OrderModel order)
Description copied from interface:OrderUtility
Run scheduled order.- Specified by:
runScheduledOrder
in interfaceOrderUtility
- Parameters:
order
- the order- Returns:
- OrderModel
-
runOrder
public void runOrder(OrderModel order)
Description copied from interface:OrderUtility
Run order.- Specified by:
runOrder
in interfaceOrderUtility
- Parameters:
order
- the order
-
getCalculationService
protected CalculationService getCalculationService()
-
setCalculationService
public void setCalculationService(CalculationService calculationService)
-
setModelService
public void setModelService(ModelService modelService)
-
getModelService
public ModelService getModelService()
-
setOrderService
public void setOrderService(OrderService orderService)
-
getOrderService
public OrderService getOrderService()
-
-