Class DefaultYmktConsentService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getUserConsent​(java.lang.String consentID)
      Consent verification for current session user.
      boolean getUserConsent​(java.lang.String customerId, java.lang.String consentID)
      Consent verification for provided customer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultYmktConsentService

        public DefaultYmktConsentService()
    • Method Detail

      • getUserConsent

        public boolean getUserConsent​(java.lang.String consentID)
        Description copied from interface: YmktConsentService
        Consent verification for current session user.
        Specified by:
        getUserConsent in interface YmktConsentService
        Parameters:
        consentID - Property prefix of yMKT consent Id.
        Returns:
        true if the user has consent, false otherwise.
      • getUserConsent

        public boolean getUserConsent​(java.lang.String customerId,
                                      java.lang.String consentID)
        Description copied from interface: YmktConsentService
        Consent verification for provided customer.
        Specified by:
        getUserConsent in interface YmktConsentService
        Parameters:
        customerId - Value of Customer.customerID.
        consentID - Value of yMKT ConsentTemplate.id.
        Returns:
        true if the customer has consent, false otherwise.