Class CreateOrderImpl
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.interactionobjects.impl.CreateOrderImpl
- All Implemented Interfaces:
CreateOrder
This interaction object is used to create an order out of a another document (e.g. basket).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyFromDocument(SalesDocument salesDoc, Order order) Copies the basket's properties to the order objectvoidcreateOrderFromBasket(Basket basket, Order order, boolean isBasketLinkedToOrder, TransactionConfiguration transConf) Create an order with the data of a basket.protected voidprepareBasket(Basket basket) Sets up the basket, so that is ready for copying.voidsetGenericFactory(GenericFactory genericFactory)
-
Constructor Details
-
CreateOrderImpl
public CreateOrderImpl()
-
-
Method Details
-
setGenericFactory
- Parameters:
genericFactory- Factory to access SAP session beans
-
createOrderFromBasket
public void createOrderFromBasket(Basket basket, Order order, boolean isBasketLinkedToOrder, TransactionConfiguration transConf) throws CommunicationException, BusinessObjectException Description copied from interface:CreateOrderCreate an order with the data of a basket.- Specified by:
createOrderFromBasketin interfaceCreateOrder- Parameters:
basket- Basket which an order should be created oforder- Order to createisBasketLinkedToOrder- is basket linked to order?transConf- Configuration to use this creation- Throws:
CommunicationException- the communication with the back end failedBusinessObjectException
-
prepareBasket
Sets up the basket, so that is ready for copying.- Parameters:
basket-- Throws:
CommunicationException
-
copyFromDocument
protected void copyFromDocument(SalesDocument salesDoc, Order order) throws CommunicationException, BusinessObjectException Copies the basket's properties to the order object- Parameters:
salesDoc- SalesDocument (e.g. a basket) which is used as sourceorder- copy destination- Throws:
CommunicationException- an exception occuredBusinessObjectException- an exception occured
-