Class DefaultSAPPartnerService
java.lang.Object
de.hybris.platform.sap.sapordermgmtb2bservices.partner.DefaultSAPPartnerService
- All Implemented Interfaces:
SapPartnerService
Default implementation for
SapPartnerService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieving delivery addresses belonging to the current session customer.getB2BCustomerForSapContactId(String sapContactId) Retrieving the hybris representation of a customer.Retrieving contact personRetrieving sold-togetHybrisAddressForSAPCustomerId(String sapCustomerId) Retrieving hybris address for an SAP customer (who can act as sold-to or ship-to party in the system)voidsetB2bCustomerService(de.hybris.platform.b2b.services.B2BCustomerService b2bCustomerService) voidsetB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService b2bUnitService)
-
Constructor Details
-
DefaultSAPPartnerService
public DefaultSAPPartnerService()
-
-
Method Details
-
getCurrentSapCustomerId
Description copied from interface:SapPartnerServiceRetrieving sold-to- Specified by:
getCurrentSapCustomerIdin interfaceSapPartnerService- Returns:
- Technical SAP key of sold-to party connected to the current hybris user
-
getCurrentSapContactId
Description copied from interface:SapPartnerServiceRetrieving contact person- Specified by:
getCurrentSapContactIdin interfaceSapPartnerService- Returns:
- Technical SAP key of contact person connected to the current hybris user
-
getHybrisAddressForSAPCustomerId
Description copied from interface:SapPartnerServiceRetrieving hybris address for an SAP customer (who can act as sold-to or ship-to party in the system)- Specified by:
getHybrisAddressForSAPCustomerIdin interfaceSapPartnerService- Parameters:
sapCustomerId- Technical key of SAP customer- Returns:
- hybris representation of the customer's address
-
getAllowedDeliveryAddresses
Description copied from interface:SapPartnerServiceRetrieving 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:
getAllowedDeliveryAddressesin interfaceSapPartnerService- Returns:
- Possible delivery addresses
-
getB2BCustomerForSapContactId
Description copied from interface:SapPartnerServiceRetrieving the hybris representation of a customer.- Specified by:
getB2BCustomerForSapContactIdin interfaceSapPartnerService- 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)
-