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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckIfExistsAndGiven(java.lang.String consentId, java.util.Map<java.lang.String,java.lang.String> consentMap)protected BaseSiteServicegetBaseSiteService()protected CommerceConsentServicegetCommerceConsentService()protected ConfigurationServicegetConfigurationService()protected CxConfigurationServicegetCxConfigurationService()protected SessionServicegetSessionService()protected UserServicegetUserService()protected booleanhasActiveConsentAnonymousUser()protected booleanhasActiveConsentLoggedUser(CustomerModel user)voidsetBaseSiteService(BaseSiteService baseSiteService)voidsetCommerceConsentService(CommerceConsentService commerceConsentService)voidsetConfigurationService(ConfigurationService configurationService)voidsetCxConfigurationService(CxConfigurationService cxConfigurationService)voidsetSessionService(SessionService sessionService)voidsetUserService(UserService userService)booleanuserHasActiveConsent()Checks if the current user has active consent for ConsentTemplates configured in CxConfig related to current BaseSitebooleanuserHasActiveConsent(UserModel user)Checks if the user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite
-
-
-
Method Detail
-
userHasActiveConsent
public boolean userHasActiveConsent()
Description copied from interface:CxConsentServiceChecks if the current user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite- Specified by:
userHasActiveConsentin interfaceCxConsentService- Returns:
- true, if the current user has active consent for all ConsentTemplates
-
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()
-
-