Class DefaultSapRevenueCloudCustomerPopulator
- java.lang.Object
-
- com.sap.hybris.saprevenuecloudcustomer.populator.DefaultSapRevenueCloudCustomerPopulator
-
- All Implemented Interfaces:
Populator<CustomerModel,Customer>
public class DefaultSapRevenueCloudCustomerPopulator extends java.lang.Object implements Populator<CustomerModel,Customer>
-
-
Constructor Summary
Constructors Constructor Description DefaultSapRevenueCloudCustomerPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<Address>
getAddressListForCustomer(CustomerModel customerModel)
Populator
getAddressPopulator()
CustomerNameStrategy
getCustomerNameStrategy()
GenericDao<SAPMarketToCatalogMappingModel>
getSapMarketToCatalogMappingModelGenericDao()
void
populate(CustomerModel customerModel, Customer customerJson)
Populate the target instance with values from the source instance.void
setAddressPopulator(Populator addressPopulator)
void
setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
void
setSapMarketToCatalogMappingModelGenericDao(GenericDao<SAPMarketToCatalogMappingModel> sapMarketToCatalogMappingModelGenericDao)
-
-
-
Method Detail
-
populate
public void populate(CustomerModel customerModel, Customer customerJson) throws ConversionException
Description copied from interface:Populator
Populate the target instance with values from the source instance.- Specified by:
populate
in interfacePopulator<CustomerModel,Customer>
- Parameters:
customerModel
- the source objectcustomerJson
- the target to fill- Throws:
ConversionException
- if an error occurs
-
getAddressListForCustomer
protected java.util.List<Address> getAddressListForCustomer(CustomerModel customerModel)
-
getCustomerNameStrategy
public CustomerNameStrategy getCustomerNameStrategy()
- Returns:
- the customerNameStrategy
-
setCustomerNameStrategy
public void setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
- Parameters:
customerNameStrategy
- the customerNameStrategy to set
-
getAddressPopulator
public Populator getAddressPopulator()
- Returns:
- the addressPopulator
-
setAddressPopulator
public void setAddressPopulator(Populator addressPopulator)
- Parameters:
addressPopulator
- the addressPopulator to set
-
getSapMarketToCatalogMappingModelGenericDao
public GenericDao<SAPMarketToCatalogMappingModel> getSapMarketToCatalogMappingModelGenericDao()
- Returns:
- the sapMarketToCatalogMappingModelGenericDao
-
setSapMarketToCatalogMappingModelGenericDao
public void setSapMarketToCatalogMappingModelGenericDao(GenericDao<SAPMarketToCatalogMappingModel> sapMarketToCatalogMappingModelGenericDao)
- Parameters:
sapMarketToCatalogMappingModelGenericDao
- the sapMarketToCatalogMappingModelGenericDao to set
-
-