Class DefaultCxConsentService

    • Constructor Detail

      • DefaultCxConsentService

        public DefaultCxConsentService()
    • Method Detail

      • 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​(java.lang.String consentId,
                                                java.util.Map<java.lang.String,​java.lang.String> consentMap)
      • setBaseSiteService

        public void setBaseSiteService​(BaseSiteService baseSiteService)
      • setCommerceConsentService

        public void setCommerceConsentService​(CommerceConsentService commerceConsentService)
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
      • setCxConfigurationService

        public void setCxConfigurationService​(CxConfigurationService cxConfigurationService)
      • setUserService

        public void setUserService​(UserService userService)
      • getUserService

        protected UserService getUserService()
      • setSessionService

        public void setSessionService​(SessionService sessionService)