Class DefaultGigyaLoginFacade

java.lang.Object
de.hybris.platform.gigya.gigyafacades.login.impl.DefaultGigyaLoginFacade
All Implemented Interfaces:
GigyaLoginFacade
Direct Known Subclasses:
DefaultGigyaB2BLoginFacade

public class DefaultGigyaLoginFacade extends Object implements GigyaLoginFacade
Default implementation of GigyaLoginFacade
  • Constructor Details

    • DefaultGigyaLoginFacade

      public DefaultGigyaLoginFacade()
  • Method Details

    • processGigyaLogin

      public boolean processGigyaLogin(GigyaJsOnLoginInfo jsInfo, GigyaConfigModel gigyaConfig)
      Description copied from interface: GigyaLoginFacade
      Method to process gigya login
      Specified by:
      processGigyaLogin in interface GigyaLoginFacade
      Parameters:
      jsInfo - the js info object
      gigyaConfig - the gigya config model
      Returns:
      boolean, true if successfully processed otherwise false
    • getHybrisUidForGigyaUser

      public String getHybrisUidForGigyaUser(String gigyaUid)
      Description copied from interface: GigyaLoginFacade
      Get hybris uid for gigya user ID
      Specified by:
      getHybrisUidForGigyaUser in interface GigyaLoginFacade
      Parameters:
      gigyaUid - the gigya uid
      Returns:
      String the uid of gigya user
    • createNewCustomer

      public UserModel createNewCustomer(GigyaConfigModel gigyaConfig, String uid) throws de.hybris.platform.commerceservices.customer.DuplicateUidException
      Description copied from interface: GigyaLoginFacade
      Create new customer from gigya Uid
      Specified by:
      createNewCustomer in interface GigyaLoginFacade
      Parameters:
      gigyaConfig - the gigyaConfig model
      uid - the uid
      Returns:
      UserModel the user model created
      Throws:
      de.hybris.platform.commerceservices.customer.DuplicateUidException - When duplicate uid found
    • createCustomer

      protected CustomerModel createCustomer(GigyaConfigModel gigyaConfig, String uid, GigyaUserObject gigyaUserObject) throws de.hybris.platform.commerceservices.customer.DuplicateUidException
      Throws:
      de.hybris.platform.commerceservices.customer.DuplicateUidException
    • getPreferencesObject

      protected com.gigya.socialize.GSObject getPreferencesObject(GigyaUserObject gigyaUserObject)
    • processGigyaProfileUpdate

      public boolean processGigyaProfileUpdate(GigyaJsOnLoginInfo jsInfo, GigyaConfigModel gigyaConfig)
      Description copied from interface: GigyaLoginFacade
      Processes gigya profile update
      Specified by:
      processGigyaProfileUpdate in interface GigyaLoginFacade
      Parameters:
      jsInfo - the gigya js info object
      gigyaConfig - the gigya config model
      Returns:
      boolean, true if successfully processed
    • updateUser

      public void updateUser(GigyaConfigModel gigyaConfig, UserModel user) throws com.gigya.socialize.GSKeyNotFoundException
      Description copied from interface: GigyaLoginFacade
      Method to update user by scheduling update user task
      Specified by:
      updateUser in interface GigyaLoginFacade
      Parameters:
      gigyaConfig - the gigyaConfig model
      user - the user model
      Throws:
      com.gigya.socialize.GSKeyNotFoundException - exception when gs key not found
    • getAccountInfo

      protected com.gigya.socialize.GSResponse getAccountInfo(GigyaConfigModel gigyaConfig, com.fasterxml.jackson.databind.ObjectMapper mapper, CustomerModel gigyaUser)
    • updateBasicInformation

      protected void updateBasicInformation(CustomerModel gigyaUser, com.gigya.socialize.GSResponse accountInfo, GigyaConfigModel gigyaConfig) throws com.gigya.socialize.GSKeyNotFoundException
      Throws:
      com.gigya.socialize.GSKeyNotFoundException
    • scheduleDataSyncFromCDCToCommerce

      protected void scheduleDataSyncFromCDCToCommerce(CustomerModel gigyaUser)
    • getPreferenceData

      protected com.gigya.socialize.GSObject getPreferenceData(com.gigya.socialize.GSResponse gsResponse)
    • convertMapToGsObject

      protected com.gigya.socialize.GSObject convertMapToGsObject(com.fasterxml.jackson.databind.ObjectMapper mapper, Map<String,Object> parms)
    • getGigyaLoginService

      public GigyaLoginService getGigyaLoginService()
    • setGigyaLoginService

      public void setGigyaLoginService(GigyaLoginService gigyaLoginService)
    • getUserService

      public de.hybris.platform.servicelayer.user.UserService getUserService()
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
    • getModelService

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

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

      public de.hybris.platform.commerceservices.strategies.CustomerNameStrategy getCustomerNameStrategy()
    • setCustomerNameStrategy

      public void setCustomerNameStrategy(de.hybris.platform.commerceservices.strategies.CustomerNameStrategy customerNameStrategy)
    • getCommonI18NService

      public de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
    • setCommonI18NService

      public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
    • getGigyaService

      public GigyaService getGigyaService()
    • setGigyaService

      public void setGigyaService(GigyaService gigyaService)
    • getTaskService

      public de.hybris.platform.task.TaskService getTaskService()
    • setTaskService

      public void setTaskService(de.hybris.platform.task.TaskService taskService)
    • getGigyaToHybrisTaskRunnerBean

      public String getGigyaToHybrisTaskRunnerBean()
    • setGigyaToHybrisTaskRunnerBean

      public void setGigyaToHybrisTaskRunnerBean(String gigyaToHybrisTaskRunnerBean)
    • getSessionService

      public de.hybris.platform.servicelayer.session.SessionService getSessionService()
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
    • getGigyaConsentFacade

      public GigyaConsentFacade getGigyaConsentFacade()
    • setGigyaConsentFacade

      public void setGigyaConsentFacade(GigyaConsentFacade gigyaConsentFacade)
    • getCustomerAccountService

      public de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()
    • setCustomerAccountService

      public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService)
    • setMultiSiteUidDecorationStrategy

      public void setMultiSiteUidDecorationStrategy(de.hybris.platform.commerceservices.multisite.strategies.MultiSiteUidDecorationStrategy multiSiteUidDecorationStrategy)