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 ConfigurationService
getConfigurationService()
protected abstract java.util.Set<java.lang.String>
getDefaultRequiredFields()
protected abstract java.lang.String
getEnabledProperty()
protected java.lang.String
getPrefix()
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.String
getSegmentCode(java.lang.String baseName)
protected java.lang.String
getSeparator()
protected boolean
isEnabled()
protected boolean
isSourceValid(Profile source)
protected boolean
isTargetValid(MappingData target)
void
populate(Profile source, MappingData target)
Populate the target instance with values from the source instance.protected abstract void
populateAfterValidation(Profile source, MappingData target)
void
setConfigurationService(ConfigurationService configurationService)
void
setPrefix(java.lang.String prefix)
void
setSeparator(java.lang.String separator)
-
-
-
Method Detail
-
populate
public void populate(Profile source, MappingData target)
Description copied from interface:Populator
Populate the target instance with values from the source instance.- Specified by:
populate
in 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:CxConsumptionLayerProfileMapper
Method define which profile attributes are needed by mapper.
They will be send to profile service.- Specified by:
getRequiredFields
in 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)
-
-