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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.servicelayer.internal.dao.GenericDao<GigyaFieldMappingModel>protected com.gigya.socialize.GSObjectgetMappedObject(com.gigya.socialize.GSObject object, String[] levels, int i) Gets the mapped objectde.hybris.platform.servicelayer.model.ModelServiceprotected voidhandleAttribute(GigyaFieldMappingModel mapping, CustomerModel gigyaUser, com.gigya.socialize.GSObject profile, String gigyaAttributeName) protected voidhandleAttributeMapping(CustomerModel gigyaUser, com.gigya.socialize.GSObject data, GigyaFieldMappingModel mapping) Handles mapping of attributes between gigya and hybrisprotected voidhandleSettingDateAttribute(GigyaFieldMappingModel mapping, CustomerModel gigyaUser, com.gigya.socialize.GSObject profile, String gigyaAttributeName) Set date attribute according to the configured date formateprotected booleanisSyncDirectionFromG2H(GigyaSyncDirection syncDirection) protected booleanisValidForApiKey(String apiKey, GigyaConfigModel gigyaConfig) voidpopulate(com.gigya.socialize.GSResponse gsResponse, CustomerModel gigyaUser) voidsetGigyaFieldMappingGenericDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<GigyaFieldMappingModel> gigyaFieldMappingGenericDao) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
Constructor Details
-
DefaultGigyaUserReversePopulator
public DefaultGigyaUserReversePopulator()
-
-
Method Details
-
populate
- Specified by:
populatein interfacede.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
-
isValidForApiKey
-
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 mappinggigyaUser- the customer modelprofile- the gs objectgigyaAttributeName- the gigya attribute name- Throws:
ParseException- when parsing failscom.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)
-