Class DefaultCxConsentService
- java.lang.Object
-
- de.hybris.platform.personalizationservices.consent.impl.DefaultCxConsentService
-
- All Implemented Interfaces:
CxConsentService
public class DefaultCxConsentService extends java.lang.Object implements CxConsentService
Default implementation ofCxConsentService.
-
-
Constructor Summary
Constructors Constructor Description DefaultCxConsentService()
-
Method Summary
-
-
-
Method Detail
-
userHasActiveConsent
public boolean userHasActiveConsent(UserModel user)
Description copied from interface:CxConsentServiceChecks if the user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite- Specified by:
userHasActiveConsentin interfaceCxConsentService- 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)
-
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()
-
-