Class ConsumptionLayerUserSegmentsProviderTest.TestCxConsumptionLayerProfileMapper
- java.lang.Object
-
- de.hybris.platform.personalizationyprofile.segment.ConsumptionLayerUserSegmentsProviderTest.TestCxConsumptionLayerProfileMapper
-
- All Implemented Interfaces:
Populator<Profile,MappingData>,CxConsumptionLayerProfileMapper
- Enclosing class:
- ConsumptionLayerUserSegmentsProviderTest
protected class ConsumptionLayerUserSegmentsProviderTest.TestCxConsumptionLayerProfileMapper extends java.lang.Object implements CxConsumptionLayerProfileMapper
-
-
Constructor Summary
Constructors Constructor Description TestCxConsumptionLayerProfileMapper(java.util.Set<java.lang.String> requiredFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getRequiredFields()Method define which profile attributes are needed by mapper.
They will be send to profile service.voidpopulate(Profile source, MappingData target)Populate the target instance with values from the source instance.
-
-
-
Method Detail
-
populate
public void populate(Profile source, MappingData target) throws ConversionException
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- Throws:
ConversionException- if an error occurs
-
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]
-
-