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,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 PlaceOrderStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
Default implementation of the
PlaceOrderStrategy.- See Also:
-
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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionplaceOrder(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, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultPlaceOrderStrategy
public DefaultPlaceOrderStrategy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setCartValidator
Deprecated, for removal: This API element is subject to removal in a future version. -
setCartService
Deprecated, for removal: This API element is subject to removal in a future version. -
setUserService
Deprecated, for removal: This API element is subject to removal in a future version. -
setKeyGenerator
Deprecated, for removal: This API element is subject to removal in a future version.
-
CreateOrderFromCartStrategyinstead or use the default one -DefaultCreateOrderFromCartStrategy