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(since="ages", forRemoval=true) public class DefaultPlaceOrderStrategy extends AbstractBusinessService implements PlaceOrderStrategyDeprecated, for removal: This API element is subject to removal in a future version.since ages - ImplementCreateOrderFromCartStrategyinstead or use the default one -DefaultCreateOrderFromCartStrategyDefault 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, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OrderModelplaceOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo)Deprecated, for removal: This API element is subject to removal in a future version.Place the order for the givencart.voidsetCartService(CartService cartService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCartValidator(CartValidator cartValidator)Deprecated, for removal: This API element is subject to removal in a future version.voidsetKeyGenerator(KeyGenerator keyGenerator)Deprecated, for removal: This API element is subject to removal in a future version.voidsetOrderCalculation(OrderCalculation orderCalculation)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUserService(UserService userService)Deprecated, for removal: This API element is subject to removal in a future version.-
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, for removal: This API element is subject to removal in a future version.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
-
setOrderCalculation
public void setOrderCalculation(OrderCalculation orderCalculation)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCartValidator
public void setCartValidator(CartValidator cartValidator)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCartService
public void setCartService(CartService cartService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUserService
public void setUserService(UserService userService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-