Class AbstractBaseMapper

    • Constructor Detail

      • AbstractBaseMapper

        public AbstractBaseMapper()
    • 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 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 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 interface CxConsumptionLayerProfileMapper
        Returns:
        set of profile attributes needed by mapper.
        Example : [insights.affinities.products, insights.affinities.categories]
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
      • getSeparator

        protected java.lang.String getSeparator()
      • setSeparator

        public void setSeparator​(java.lang.String separator)