Class SECAddressPopulator
- java.lang.Object
-
- com.sap.hybris.sec.eventpublisher.populator.SECAddressPopulator
-
- All Implemented Interfaces:
Populator<AddressModel,Address>
- Direct Known Subclasses:
SECB2BAddressPopulator
public class SECAddressPopulator extends java.lang.Object implements Populator<AddressModel,Address>
-
-
Constructor Summary
Constructors Constructor Description SECAddressPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationServicegetConfigurationService()protected java.lang.StringgetModelId(AddressModel customerAddressModel)protected booleanisDefaultAddress(AddressModel customerAddressModel)voidpopulate(AddressModel source, Address target)Populate the target instance with values from the source instance.protected voidpopulateAddressFields(AddressModel customerAddressModel, Address customerAddressData)voidsetConfigurationService(ConfigurationService configurationService)
-
-
-
Method Detail
-
populate
public void populate(AddressModel source, Address target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AddressModel,Address>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getModelId
protected java.lang.String getModelId(AddressModel customerAddressModel)
-
isDefaultAddress
protected boolean isDefaultAddress(AddressModel customerAddressModel)
-
populateAddressFields
protected void populateAddressFields(AddressModel customerAddressModel, Address customerAddressData)
-
getConfigurationService
public ConfigurationService getConfigurationService()
- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
- Parameters:
configurationService- the configurationService to set
-
-