Class DefaultSAPPartnerService

java.lang.Object
de.hybris.platform.sap.sapordermgmtb2bservices.partner.DefaultSAPPartnerService
All Implemented Interfaces:
SapPartnerService

public class DefaultSAPPartnerService extends Object implements SapPartnerService
Default implementation for SapPartnerService
  • Constructor Details

    • DefaultSAPPartnerService

      public DefaultSAPPartnerService()
  • Method Details

    • getCurrentSapCustomerId

      public String getCurrentSapCustomerId()
      Description copied from interface: SapPartnerService
      Retrieving sold-to
      Specified by:
      getCurrentSapCustomerId in interface SapPartnerService
      Returns:
      Technical SAP key of sold-to party connected to the current hybris user
    • getCurrentSapContactId

      public String getCurrentSapContactId()
      Description copied from interface: SapPartnerService
      Retrieving contact person
      Specified by:
      getCurrentSapContactId in interface SapPartnerService
      Returns:
      Technical SAP key of contact person connected to the current hybris user
    • getHybrisAddressForSAPCustomerId

      public AddressModel getHybrisAddressForSAPCustomerId(String sapCustomerId)
      Description copied from interface: SapPartnerService
      Retrieving hybris address for an SAP customer (who can act as sold-to or ship-to party in the system)
      Specified by:
      getHybrisAddressForSAPCustomerId in interface SapPartnerService
      Parameters:
      sapCustomerId - Technical key of SAP customer
      Returns:
      hybris representation of the customer's address
    • getAllowedDeliveryAddresses

      public Collection<AddressModel> getAllowedDeliveryAddresses()
      Description copied from interface: SapPartnerService
      Retrieving delivery addresses belonging to the current session customer. These addresses correspond to ship-to parties assigned to the current customer in the SAP back end
      Specified by:
      getAllowedDeliveryAddresses in interface SapPartnerService
      Returns:
      Possible delivery addresses
    • getB2BCustomerForSapContactId

      public B2BCustomerModel getB2BCustomerForSapContactId(String sapContactId)
      Description copied from interface: SapPartnerService
      Retrieving the hybris representation of a customer.
      Specified by:
      getB2BCustomerForSapContactId in interface SapPartnerService
      Parameters:
      sapContactId - Technical key of an SAP contact person
      Returns:
      Customer customer
    • setB2bCustomerService

      public void setB2bCustomerService(de.hybris.platform.b2b.services.B2BCustomerService b2bCustomerService)
    • setB2bUnitService

      public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService b2bUnitService)