Class DefaultSAPPartnerService
- java.lang.Object
-
- de.hybris.platform.sap.sapordermgmtb2bservices.partner.DefaultSAPPartnerService
-
- All Implemented Interfaces:
SapPartnerService
public class DefaultSAPPartnerService extends java.lang.Object implements SapPartnerService
Default implementation forSapPartnerService
-
-
Constructor Summary
Constructors Constructor Description DefaultSAPPartnerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<AddressModel>getAllowedDeliveryAddresses()Retrieving delivery addresses belonging to the current session customer.B2BCustomerModelgetB2BCustomerForSapContactId(java.lang.String sapContactId)Retrieving the hybris representation of a customer.java.lang.StringgetCurrentSapContactId()Retrieving contact personjava.lang.StringgetCurrentSapCustomerId()Retrieving sold-toAddressModelgetHybrisAddressForSAPCustomerId(java.lang.String sapCustomerId)Retrieving hybris address for an SAP customer (who can act as sold-to or ship-to party in the system)voidsetB2bCustomerService(B2BCustomerService b2bCustomerService)voidsetB2bUnitService(B2BUnitService b2bUnitService)
-
-
-
Method Detail
-
getCurrentSapCustomerId
public java.lang.String 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
public java.lang.String 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
public AddressModel getHybrisAddressForSAPCustomerId(java.lang.String sapCustomerId)
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
public java.util.Collection<AddressModel> 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
public B2BCustomerModel getB2BCustomerForSapContactId(java.lang.String sapContactId)
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(B2BCustomerService b2bCustomerService)
-
setB2bUnitService
public void setB2bUnitService(B2BUnitService b2bUnitService)
-
-