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 Object implements CxConsumptionLayerProfileMapper
  • Constructor Details

    • AbstractBaseMapper

      public AbstractBaseMapper()
  • Method Details

    • 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 interface Populator<Profile,MappingData>
      Parameters:
      source - the source object
      target - 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 String getSegmentCode(String baseName)
    • getDefaultRequiredFields

      protected abstract Set<String> getDefaultRequiredFields()
    • getEnabledProperty

      protected abstract String getEnabledProperty()
    • getPrefix

      protected String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • getRequiredFields

      public Set<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 interface CxConsumptionLayerProfileMapper
      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 String getSeparator()
    • setSeparator

      public void setSeparator(String separator)