Class DefaultGigyaAuthService
java.lang.Object
de.hybris.platform.gigya.gigyab2bservices.auth.impl.DefaultGigyaAuthService
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuthorisationsToCustomer(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.B2BCommerceUserServicede.hybris.platform.site.BaseSiteServicede.hybris.platform.servicelayer.dto.converter.Converter<CustomerModel,GigyaAuthRequestData> org.springframework.web.client.RestTemplatede.hybris.platform.servicelayer.user.UserServicevoidremoveAuthorisationsOfCustomer(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)
-
Constructor Details
-
DefaultGigyaAuthService
public DefaultGigyaAuthService()
-
-
Method Details
-
assignAuthorisationsToCustomer
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
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
-
setGigyaTokenGenerator
-
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)
-