Class DefaultGigyaB2BLoginFacade

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

public class DefaultGigyaB2BLoginFacade extends DefaultGigyaLoginFacade
Gigya B2B Login facade to handle Customer registration in the B2B Context
  • Constructor Details

    • DefaultGigyaB2BLoginFacade

      public DefaultGigyaB2BLoginFacade()
  • Method Details

    • createNewCustomer

      public UserModel createNewCustomer(GigyaConfigModel gigyaConfig, String uid) throws de.hybris.platform.commerceservices.customer.DuplicateUidException
      Creates a new customer in Commerce
      Specified by:
      createNewCustomer in interface GigyaLoginFacade
      Overrides:
      createNewCustomer in class DefaultGigyaLoginFacade
      Parameters:
      gigyaConfig - Gigya Config Model
      uid - User UID
      Returns:
      UserModel UserModel object of the created user
      Throws:
      de.hybris.platform.commerceservices.customer.DuplicateUidException - When duplicate uid found
    • updateUser

      public void updateUser(GigyaConfigModel gigyaConfig, UserModel user) throws com.gigya.socialize.GSKeyNotFoundException
      Update the existing B2B User
      Specified by:
      updateUser in interface GigyaLoginFacade
      Overrides:
      updateUser in class DefaultGigyaLoginFacade
      Parameters:
      gigyaConfig - Gigya Config Model for the base site
      user - User Model
      Throws:
      com.gigya.socialize.GSKeyNotFoundException - exception when gs key not found
    • getGigyaAuthServiceForGigyaConfig

      protected GigyaAuthService getGigyaAuthServiceForGigyaConfig(GigyaConfigModel gigyaConfig)
      Invokes the appropriate GigyaAuthService implementation
      Parameters:
      gigyaConfig -
      Returns:
    • getGroupsData

      protected GigyaGroupsData getGroupsData(com.gigya.socialize.GSResponse gsResponse)
      Get the B2B Groups information from the Gigya Response object
      Parameters:
      gsResponse - Response of the Gigya Group information call
      Returns:
      GigyaGroupsData Groups information for the B2B User
    • getB2bUnitService

      public de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
    • setB2bUnitService

      public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
    • getGigyaAuthService

      public DefaultGigyaAuthService getGigyaAuthService()
    • setGigyaAuthService

      public void setGigyaAuthService(DefaultGigyaAuthService gigyaAuthService)
    • getGigyaAssetsAuthService

      public GigyaAssetsAuthService getGigyaAssetsAuthService()
    • setGigyaAssetsAuthService

      public void setGigyaAssetsAuthService(GigyaAssetsAuthService gigyaAssetsAuthService)
    • getSapB2BModelService

      public de.hybris.platform.servicelayer.model.ModelService getSapB2BModelService()
    • setSapB2BModelService

      public void setSapB2BModelService(de.hybris.platform.servicelayer.model.ModelService sapB2BModelService)