Interface YmktConsentService

All Known Implementing Classes:
DefaultYmktConsentService, DefaultYmktConsentService

public interface YmktConsentService
Consent service for yMKT integration.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Consent verification for current session user.
    boolean
    getUserConsent(String customerId, String consentId)
    Consent verification for provided customer.
  • Method Details

    • getUserConsent

      boolean getUserConsent(String consentId)
      Consent verification for current session user.
      Parameters:
      consentId - Property prefix of yMKT consent Id.
      Returns:
      true if the user has consent, false otherwise.
    • getUserConsent

      boolean getUserConsent(String customerId, String consentId)
      Consent verification for provided customer.
      Parameters:
      customerId - Value of Customer.customerID.
      consentId - Value of yMKT ConsentTemplate.id.
      Returns:
      true if the customer has consent, false otherwise.