Class DefaultCxConsentService

java.lang.Object
de.hybris.platform.personalizationservices.consent.impl.DefaultCxConsentService
All Implemented Interfaces:
CxConsentService

public class DefaultCxConsentService extends Object implements CxConsentService
Default implementation of CxConsentService.
  • Constructor Details

    • DefaultCxConsentService

      public DefaultCxConsentService()
  • Method Details

    • userHasActiveConsent

      public boolean userHasActiveConsent()
      Description copied from interface: CxConsentService
      Checks if the current user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite
      Specified by:
      userHasActiveConsent in interface CxConsentService
      Returns:
      true, if the current user has active consent for all ConsentTemplates
    • userHasActiveConsent

      public boolean userHasActiveConsent(UserModel user)
      Description copied from interface: CxConsentService
      Checks if the user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite
      Specified by:
      userHasActiveConsent in interface CxConsentService
      Parameters:
      user - The user for whom we want to check the consents
      Returns:
      true, if the user has active consent for all ConsentTemplates
    • hasActiveConsentLoggedUser

      protected boolean hasActiveConsentLoggedUser(CustomerModel user)
    • hasActiveConsentAnonymousUser

      protected boolean hasActiveConsentAnonymousUser()
    • checkIfExistsAndGiven

      protected boolean checkIfExistsAndGiven(String consentId, Map<String,String> consentMap)
    • setBaseSiteService

      public void setBaseSiteService(BaseSiteService baseSiteService)
    • getBaseSiteService

      protected BaseSiteService getBaseSiteService()
    • setCommerceConsentService

      public void setCommerceConsentService(CommerceConsentService commerceConsentService)
    • getCommerceConsentService

      protected CommerceConsentService getCommerceConsentService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • setCxConfigurationService

      public void setCxConfigurationService(CxConfigurationService cxConfigurationService)
    • getCxConfigurationService

      protected CxConfigurationService getCxConfigurationService()
    • setUserService

      public void setUserService(UserService userService)
    • getUserService

      protected UserService getUserService()
    • setSessionService

      public void setSessionService(SessionService sessionService)
    • getSessionService

      protected SessionService getSessionService()