Class DefaultB2BPlaceOrderStrategy
- java.lang.Object
-
- de.hybris.platform.b2b.strategies.impl.DefaultB2BPlaceOrderStrategy
-
- All Implemented Interfaces:
PlaceOrderStrategy
@Deprecated(since="4.4") public class DefaultB2BPlaceOrderStrategy extends java.lang.Object implements PlaceOrderStrategy
Deprecated.Since 4.4. UseDefaultB2BCreateOrderFromCartStrategyA place order strategy which delegates toDefaultPlaceOrderStrategyand starts a order approval workflow
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BPlaceOrderStrategy()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcreateB2BBusinessProcess(OrderModel order)Deprecated.protected B2BCustomerService<B2BCustomerModel,B2BUnitModel>getB2bCustomerService()Deprecated.protected B2BUnitService<B2BUnitModel,B2BCustomerModel>getB2bUnitService()Deprecated.BusinessProcessStrategygetBusinessProcessStrategy(java.lang.String code)Deprecated.Looks up the correct business process creation strategy based on the order status.protected I18NServicegetI18nService()Deprecated.protected PlaceOrderStrategygetPlaceOrderStrategy()Deprecated.protected booleanisB2BContext(AbstractOrderModel order)Deprecated.OrderModelplaceOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo)Deprecated.Place the order for the givencart.voidsetB2bCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)Deprecated.voidsetB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)Deprecated.voidsetBusinessProcessStrategies(java.util.List<BusinessProcessStrategy> businessProcessStrategies)Deprecated.voidsetI18nService(I18NService i18nService)Deprecated.voidsetPlaceOrderStrategy(PlaceOrderStrategy placeOrderStrategy)Deprecated.
-
-
-
Method Detail
-
placeOrder
public OrderModel placeOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) throws InvalidCartException
Deprecated.Description copied from interface:PlaceOrderStrategyPlace the order for the givencart. This means: first the cart is calculated (seeOrderService.calculateOrder(de.hybris.platform.core.model.order.AbstractOrderModel)than (if notnull) thedeliveryAddressandpaymentAddressandpaymentInfoare stored for the current session user and also to the cart. After this from thecartanOrderModelis created and the cart is removed from the session.- Specified by:
placeOrderin interfacePlaceOrderStrategy- Parameters:
cart- theCartModeldeliveryAddress- the deliveryAddressModelfor the current session user. Can benull.paymentAddress- the paymentAddressModelfor the current session user. Can benull.paymentInfo- thePaymentInfoModelfor the current session user. Can benull.- Returns:
- the
OrderModel - Throws:
InvalidCartException
-
isB2BContext
protected boolean isB2BContext(AbstractOrderModel order)
Deprecated.
-
createB2BBusinessProcess
protected void createB2BBusinessProcess(OrderModel order)
Deprecated.
-
getPlaceOrderStrategy
protected PlaceOrderStrategy getPlaceOrderStrategy()
Deprecated.- Returns:
- the placeOrderStrategy
-
setPlaceOrderStrategy
public void setPlaceOrderStrategy(PlaceOrderStrategy placeOrderStrategy)
Deprecated.- Parameters:
placeOrderStrategy- the placeOrderStrategy to set
-
getBusinessProcessStrategy
public BusinessProcessStrategy getBusinessProcessStrategy(java.lang.String code)
Deprecated.Looks up the correct business process creation strategy based on the order status. The strategy.code attribute should be injected with an appropriate OrderStatus enumeration value- Parameters:
code-- Returns:
- BusinessProcessStrategy
-
setBusinessProcessStrategies
public void setBusinessProcessStrategies(java.util.List<BusinessProcessStrategy> businessProcessStrategies)
Deprecated.
-
getB2bUnitService
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
Deprecated.
-
setB2bUnitService
public void setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
Deprecated.
-
setB2bCustomerService
public void setB2bCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)
Deprecated.
-
getB2bCustomerService
protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> getB2bCustomerService()
Deprecated.
-
getI18nService
protected I18NService getI18nService()
Deprecated.
-
setI18nService
public void setI18nService(I18NService i18nService)
Deprecated.
-
-