Interface CxConsentService

  • All Known Implementing Classes:
    DefaultCxConsentService

    public interface CxConsentService
    Service for checking user consent related to CxConfig
    • Method Detail

      • userHasActiveConsent

        boolean userHasActiveConsent​(UserModel user)
        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