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 ConfigurationService
getConfigurationService()
protected java.lang.String
getModelId(AddressModel customerAddressModel)
protected boolean
isDefaultAddress(AddressModel customerAddressModel)
void
populate(AddressModel source, Address target)
Populate the target instance with values from the source instance.protected void
populateAddressFields(AddressModel customerAddressModel, Address customerAddressData)
void
setConfigurationService(ConfigurationService configurationService)
-
-
-
Method Detail
-
populate
public void populate(AddressModel source, Address target) throws ConversionException
Description copied from interface:Populator
Populate the target instance with values from the source instance.- Specified by:
populate
in 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
-
-