Class DefaultCxConsentService
java.lang.Object
de.hybris.platform.personalizationservices.consent.impl.DefaultCxConsentService
- All Implemented Interfaces:
CxConsentService
Default implementation of
CxConsentService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckIfExistsAndGiven(String consentId, Map<String, String> consentMap) protected BaseSiteServiceprotected CommerceConsentServiceprotected ConfigurationServiceprotected CxConfigurationServiceprotected SessionServiceprotected UserServiceprotected booleanprotected booleanvoidsetBaseSiteService(BaseSiteService baseSiteService) voidsetCommerceConsentService(CommerceConsentService commerceConsentService) voidsetConfigurationService(ConfigurationService configurationService) voidsetCxConfigurationService(CxConfigurationService cxConfigurationService) voidsetSessionService(SessionService sessionService) voidsetUserService(UserService userService) booleanChecks if the current user has active consent for ConsentTemplates configured in CxConfig related to current BaseSitebooleanChecks if the user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite
-
Constructor Details
-
DefaultCxConsentService
public DefaultCxConsentService()
-
-
Method Details
-
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
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
-
hasActiveConsentAnonymousUser
protected boolean hasActiveConsentAnonymousUser() -
checkIfExistsAndGiven
-
setBaseSiteService
-
getBaseSiteService
-
setCommerceConsentService
-
getCommerceConsentService
-
setConfigurationService
-
getConfigurationService
-
setCxConfigurationService
-
getCxConfigurationService
-
setUserService
-
getUserService
-
setSessionService
-
getSessionService
-