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. UseDefaultB2BCreateOrderFromCartStrategy
A place order strategy which delegates toDefaultPlaceOrderStrategy
and 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 void
createB2BBusinessProcess(OrderModel order)
Deprecated.protected B2BCustomerService<B2BCustomerModel,B2BUnitModel>
getB2bCustomerService()
Deprecated.protected B2BUnitService<B2BUnitModel,B2BCustomerModel>
getB2bUnitService()
Deprecated.BusinessProcessStrategy
getBusinessProcessStrategy(java.lang.String code)
Deprecated.Looks up the correct business process creation strategy based on the order status.protected I18NService
getI18nService()
Deprecated.protected PlaceOrderStrategy
getPlaceOrderStrategy()
Deprecated.protected boolean
isB2BContext(AbstractOrderModel order)
Deprecated.OrderModel
placeOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo)
Deprecated.Place the order for the givencart
.void
setB2bCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)
Deprecated.void
setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
Deprecated.void
setBusinessProcessStrategies(java.util.List<BusinessProcessStrategy> businessProcessStrategies)
Deprecated.void
setI18nService(I18NService i18nService)
Deprecated.void
setPlaceOrderStrategy(PlaceOrderStrategy placeOrderStrategy)
Deprecated.
-
-
-
Method Detail
-
placeOrder
public OrderModel placeOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) throws InvalidCartException
Deprecated.Description copied from interface:PlaceOrderStrategy
Place the order for the givencart
. This means: first the cart is calculated (seeOrderService.calculateOrder(de.hybris.platform.core.model.order.AbstractOrderModel)
than (if notnull
) thedeliveryAddress
andpaymentAddress
andpaymentInfo
are stored for the current session user and also to the cart. After this from thecart
anOrderModel
is created and the cart is removed from the session.- Specified by:
placeOrder
in interfacePlaceOrderStrategy
- Parameters:
cart
- theCartModel
deliveryAddress
- the deliveryAddressModel
for the current session user. Can benull
.paymentAddress
- the paymentAddressModel
for the current session user. Can benull
.paymentInfo
- thePaymentInfoModel
for 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.
-
-