Class AbstractBaseMapper
- java.lang.Object
-
- de.hybris.platform.personalizationyprofile.mapper.impl.AbstractBaseMapper
-
- All Implemented Interfaces:
Populator<Profile,MappingData>,CxConsumptionLayerProfileMapper
- Direct Known Subclasses:
AbstractAffinityMapper,CxOrderMapper,CxSegmentMapper
public abstract class AbstractBaseMapper extends java.lang.Object implements CxConsumptionLayerProfileMapper
-
-
Constructor Summary
Constructors Constructor Description AbstractBaseMapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ConfigurationServicegetConfigurationService()protected abstract java.util.Set<java.lang.String>getDefaultRequiredFields()protected abstract java.lang.StringgetEnabledProperty()protected java.lang.StringgetPrefix()java.util.Set<java.lang.String>getRequiredFields()Method define which profile attributes are needed by mapper.
They will be send to profile service.protected java.lang.StringgetSegmentCode(java.lang.String baseName)protected java.lang.StringgetSeparator()protected booleanisEnabled()protected booleanisSourceValid(Profile source)protected booleanisTargetValid(MappingData target)voidpopulate(Profile source, MappingData target)Populate the target instance with values from the source instance.protected abstract voidpopulateAfterValidation(Profile source, MappingData target)voidsetConfigurationService(ConfigurationService configurationService)voidsetPrefix(java.lang.String prefix)voidsetSeparator(java.lang.String separator)
-
-
-
Method Detail
-
populate
public void populate(Profile source, MappingData target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<Profile,MappingData>- Parameters:
source- the source objecttarget- the target to fill
-
isEnabled
protected boolean isEnabled()
-
isSourceValid
protected boolean isSourceValid(Profile source)
-
isTargetValid
protected boolean isTargetValid(MappingData target)
-
populateAfterValidation
protected abstract void populateAfterValidation(Profile source, MappingData target)
-
getSegmentCode
protected java.lang.String getSegmentCode(java.lang.String baseName)
-
getDefaultRequiredFields
protected abstract java.util.Set<java.lang.String> getDefaultRequiredFields()
-
getEnabledProperty
protected abstract java.lang.String getEnabledProperty()
-
getPrefix
protected java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
getRequiredFields
public java.util.Set<java.lang.String> getRequiredFields()
Description copied from interface:CxConsumptionLayerProfileMapperMethod define which profile attributes are needed by mapper.
They will be send to profile service.- Specified by:
getRequiredFieldsin interfaceCxConsumptionLayerProfileMapper- Returns:
- set of profile attributes needed by mapper.
Example : [insights.affinities.products, insights.affinities.categories]
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getSeparator
protected java.lang.String getSeparator()
-
setSeparator
public void setSeparator(java.lang.String separator)
-
-