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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationServiceprotected abstract Stringprotected StringMethod define which profile attributes are needed by mapper.
They will be send to profile service.protected StringgetSegmentCode(String baseName) protected Stringprotected booleanprotected 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) voidvoidsetSeparator(String separator)
-
Constructor Details
-
AbstractBaseMapper
public AbstractBaseMapper()
-
-
Method Details
-
populate
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
-
isTargetValid
-
populateAfterValidation
-
getSegmentCode
-
getDefaultRequiredFields
-
getEnabledProperty
-
getPrefix
-
setPrefix
-
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
-
setConfigurationService
-
getSeparator
-
setSeparator
-