Class DefaultPlaceOrderStrategy
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.order.strategies.impl.DefaultPlaceOrderStrategy
-
- All Implemented Interfaces:
PlaceOrderStrategy
,java.io.Serializable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
@Deprecated public class DefaultPlaceOrderStrategy extends AbstractBusinessService implements PlaceOrderStrategy
Deprecated.since ages - ImplementCreateOrderFromCartStrategy
instead or use the default one -DefaultCreateOrderFromCartStrategy
Default implementation of thePlaceOrderStrategy
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultPlaceOrderStrategy()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OrderModel
placeOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo)
Deprecated.Place the order for the givencart
.void
setCartService(CartService cartService)
Deprecated.void
setCartValidator(CartValidator cartValidator)
Deprecated.void
setKeyGenerator(KeyGenerator keyGenerator)
Deprecated.void
setOrderCalculation(OrderCalculation orderCalculation)
Deprecated.void
setUserService(UserService userService)
Deprecated.-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
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
-
setOrderCalculation
public void setOrderCalculation(OrderCalculation orderCalculation)
Deprecated.
-
setCartValidator
public void setCartValidator(CartValidator cartValidator)
Deprecated.
-
setCartService
public void setCartService(CartService cartService)
Deprecated.
-
setUserService
public void setUserService(UserService userService)
Deprecated.
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
Deprecated.
-
-