Class DefaultYmktConsentService

java.lang.Object
com.hybris.ymkt.common.consent.impl.DefaultYmktConsentService
All Implemented Interfaces:
YmktConsentService

public class DefaultYmktConsentService extends Object implements YmktConsentService
Empty implementation of YmktConsentService when the sapymktconsent extension is not used.
  • Constructor Details

    • DefaultYmktConsentService

      public DefaultYmktConsentService()
  • Method Details

    • getUserConsent

      public boolean getUserConsent(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(String customerId, 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.