Class InitBasketImpl
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.interactionobjects.impl.InitBasketImpl
- All Implemented Interfaces:
InitBasket
** This interaction object is used to initialize a basket.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPartnerData(PartnerList partnerList, String partnerFunction, String partnerId) Adds partner data to the partnerlist.protected voidassureBillTo(Basket basket) Ensure that a billto is set on basket header levelprotected voidassureShipTo(Basket basket) Ensure that a shipto is set on basket header levelvoidInitialize the basket.voidinitPartnerList(PartnerList partnerList, String soldToId, String contactId) Initialize the partner list.voidsetGenericFactory(GenericFactory genericFactory) Sets factory used to access SAP session beans
-
Field Details
-
sapLogger
Logging instance
-
-
Constructor Details
-
InitBasketImpl
public InitBasketImpl()
-
-
Method Details
-
setGenericFactory
Sets factory used to access SAP session beans- Parameters:
genericFactory-
-
init
Description copied from interface:InitBasketInitialize the basket. This method is used to initialize a new created basket.- Specified by:
initin interfaceInitBasket- Parameters:
basket- basket to initializesoldToId- the id of the sold to partycontactId- the id of the contact
-
initPartnerList
Description copied from interface:InitBasketInitialize the partner list.- Specified by:
initPartnerListin interfaceInitBasket- Parameters:
partnerList- list of partner to initializesoldToId- the id of the sold to partycontactId- the id of the contact
-
addPartnerData
Adds partner data to the partnerlist.- Parameters:
partnerList-partnerFunction-partnerId-
-
assureShipTo
Ensure that a shipto is set on basket header level- Parameters:
basket- BO cart representation
-
assureBillTo
Ensure that a billto is set on basket header level- Parameters:
basket- BO cart representation
-