Class DefaultGigyaAuthService
- java.lang.Object
-
- de.hybris.platform.gigya.gigyab2bservices.auth.impl.DefaultGigyaAuthService
-
- All Implemented Interfaces:
GigyaAuthService
public class DefaultGigyaAuthService extends java.lang.Object implements GigyaAuthService
Default implementation of GigyaAuthService which calls the SAP CDC's Authorization API to fetch Authorizations for a Customer belonging to an organization
-
-
Constructor Summary
Constructors Constructor Description DefaultGigyaAuthService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignAuthorisationsToCustomer(CustomerModel customer)Method to assign authorisations to the customer after fetching it from SAP CDC.protected org.springframework.http.HttpEntitycreateHttpEntity(CustomerModel customer, org.springframework.http.HttpHeaders headers)de.hybris.platform.b2b.company.B2BCommerceUserServicegetB2bCommerceUserService()de.hybris.platform.site.BaseSiteServicegetBaseSiteService()de.hybris.platform.servicelayer.dto.converter.Converter<CustomerModel,GigyaAuthRequestData>getGigyaAuthRequestConverter()GigyaTokenGeneratorgetGigyaTokenGenerator()org.springframework.web.client.RestTemplategetRestTemplate()de.hybris.platform.servicelayer.user.UserServicegetUserService()voidremoveAuthorisationsOfCustomer(CustomerModel customer)Method to remove authorisations from the customer.voidsetB2bCommerceUserService(de.hybris.platform.b2b.company.B2BCommerceUserService b2bCommerceUserService)voidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService)voidsetGigyaAuthRequestConverter(de.hybris.platform.servicelayer.dto.converter.Converter<CustomerModel,GigyaAuthRequestData> gigyaAuthRequestConverter)voidsetGigyaTokenGenerator(GigyaTokenGenerator gigyaTokenGenerator)voidsetRestTemplate(org.springframework.web.client.RestTemplate restTemplate)voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
-
-
Method Detail
-
assignAuthorisationsToCustomer
public void assignAuthorisationsToCustomer(CustomerModel customer)
Description copied from interface:GigyaAuthServiceMethod to assign authorisations to the customer after fetching it from SAP CDC.- Specified by:
assignAuthorisationsToCustomerin interfaceGigyaAuthService- Parameters:
customer- The customer model
-
createHttpEntity
protected org.springframework.http.HttpEntity createHttpEntity(CustomerModel customer, org.springframework.http.HttpHeaders headers)
-
removeAuthorisationsOfCustomer
public void removeAuthorisationsOfCustomer(CustomerModel customer)
Description copied from interface:GigyaAuthServiceMethod to remove authorisations from the customer.- Specified by:
removeAuthorisationsOfCustomerin interfaceGigyaAuthService- Parameters:
customer- The customer model
-
getGigyaAuthRequestConverter
public de.hybris.platform.servicelayer.dto.converter.Converter<CustomerModel,GigyaAuthRequestData> getGigyaAuthRequestConverter()
-
setGigyaAuthRequestConverter
public void setGigyaAuthRequestConverter(de.hybris.platform.servicelayer.dto.converter.Converter<CustomerModel,GigyaAuthRequestData> gigyaAuthRequestConverter)
-
getBaseSiteService
public de.hybris.platform.site.BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService)
-
getGigyaTokenGenerator
public GigyaTokenGenerator getGigyaTokenGenerator()
-
setGigyaTokenGenerator
public void setGigyaTokenGenerator(GigyaTokenGenerator gigyaTokenGenerator)
-
getB2bCommerceUserService
public de.hybris.platform.b2b.company.B2BCommerceUserService getB2bCommerceUserService()
-
setB2bCommerceUserService
public void setB2bCommerceUserService(de.hybris.platform.b2b.company.B2BCommerceUserService b2bCommerceUserService)
-
getUserService
public de.hybris.platform.servicelayer.user.UserService getUserService()
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate()
-
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
-
-