Class DefaultGigyaUserReversePopulator

java.lang.Object
de.hybris.platform.gigya.gigyaservices.populators.DefaultGigyaUserReversePopulator
All Implemented Interfaces:
de.hybris.platform.converters.Populator<com.gigya.socialize.GSResponse,CustomerModel>

public class DefaultGigyaUserReversePopulator extends Object implements de.hybris.platform.converters.Populator<com.gigya.socialize.GSResponse,CustomerModel>
  • Constructor Details

    • DefaultGigyaUserReversePopulator

      public DefaultGigyaUserReversePopulator()
  • Method Details

    • populate

      public void populate(com.gigya.socialize.GSResponse gsResponse, CustomerModel gigyaUser)
      Specified by:
      populate in interface de.hybris.platform.converters.Populator<com.gigya.socialize.GSResponse,CustomerModel>
    • handleAttributeMapping

      protected void handleAttributeMapping(CustomerModel gigyaUser, com.gigya.socialize.GSObject data, GigyaFieldMappingModel mapping)
      Handles mapping of attributes between gigya and hybris
      Parameters:
      gigyaUser -
      data -
      mapping -
    • isSyncDirectionFromG2H

      protected boolean isSyncDirectionFromG2H(GigyaSyncDirection syncDirection)
    • isValidForApiKey

      protected boolean isValidForApiKey(String apiKey, GigyaConfigModel gigyaConfig)
    • getMappedObject

      protected com.gigya.socialize.GSObject getMappedObject(com.gigya.socialize.GSObject object, String[] levels, int i)
      Gets the mapped object
      Parameters:
      object -
      levels -
      i -
      GSObject -
    • handleAttribute

      protected void handleAttribute(GigyaFieldMappingModel mapping, CustomerModel gigyaUser, com.gigya.socialize.GSObject profile, String gigyaAttributeName)
    • handleSettingDateAttribute

      protected void handleSettingDateAttribute(GigyaFieldMappingModel mapping, CustomerModel gigyaUser, com.gigya.socialize.GSObject profile, String gigyaAttributeName) throws ParseException, com.gigya.socialize.GSKeyNotFoundException
      Set date attribute according to the configured date formate
      Parameters:
      mapping - the gigya field mapping
      gigyaUser - the customer model
      profile - the gs object
      gigyaAttributeName - the gigya attribute name
      Throws:
      ParseException - when parsing fails
      com.gigya.socialize.GSKeyNotFoundException - when gs key us not found
    • getGigyaFieldMappingGenericDao

      public de.hybris.platform.servicelayer.internal.dao.GenericDao<GigyaFieldMappingModel> getGigyaFieldMappingGenericDao()
    • setGigyaFieldMappingGenericDao

      public void setGigyaFieldMappingGenericDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<GigyaFieldMappingModel> gigyaFieldMappingGenericDao)
    • getModelService

      public de.hybris.platform.servicelayer.model.ModelService getModelService()
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)