Interface CxConsentService
- All Known Implementing Classes:
DefaultCxConsentService
public interface CxConsentService
Service for checking user consent related to CxConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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
-
Method Details
-
userHasActiveConsent
Checks if the user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite- Parameters:
user- The user for whom we want to check the consents- Returns:
- true, if the user has active consent for all ConsentTemplates
-
userHasActiveConsent
default boolean userHasActiveConsent()Checks if the current user has active consent for ConsentTemplates configured in CxConfig related to current BaseSite- Returns:
- true, if the current user has active consent for all ConsentTemplates
- Since:
- 2011
-