java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.interactionobjects.impl.InitBasketImpl
All Implemented Interfaces:
InitBasket

public class InitBasketImpl extends Object implements InitBasket
** This interaction object is used to initialize a basket.
  • Field Details

    • sapLogger

      protected static final Log4JWrapper sapLogger
      Logging instance
  • Constructor Details

    • InitBasketImpl

      public InitBasketImpl()
  • Method Details

    • setGenericFactory

      public void setGenericFactory(GenericFactory genericFactory)
      Sets factory used to access SAP session beans
      Parameters:
      genericFactory -
    • init

      public void init(Basket basket, String soldToId, String contactId)
      Description copied from interface: InitBasket
      Initialize the basket. This method is used to initialize a new created basket.
      Specified by:
      init in interface InitBasket
      Parameters:
      basket - basket to initialize
      soldToId - the id of the sold to party
      contactId - the id of the contact
    • initPartnerList

      public void initPartnerList(PartnerList partnerList, String soldToId, String contactId)
      Description copied from interface: InitBasket
      Initialize the partner list.
      Specified by:
      initPartnerList in interface InitBasket
      Parameters:
      partnerList - list of partner to initialize
      soldToId - the id of the sold to party
      contactId - the id of the contact
    • addPartnerData

      protected void addPartnerData(PartnerList partnerList, String partnerFunction, String partnerId)
      Adds partner data to the partnerlist.
      Parameters:
      partnerList -
      partnerFunction -
      partnerId -
    • assureShipTo

      protected void assureShipTo(Basket basket)
      Ensure that a shipto is set on basket header level
      Parameters:
      basket - BO cart representation
    • assureBillTo

      protected void assureBillTo(Basket basket)
      Ensure that a billto is set on basket header level
      Parameters:
      basket - BO cart representation