Interface GigyaConsentService

All Superinterfaces:
de.hybris.platform.commerceservices.consent.CommerceConsentService
All Known Implementing Classes:
DefaultGigyaConsentService

public interface GigyaConsentService extends de.hybris.platform.commerceservices.consent.CommerceConsentService
Service to carry out consent related actions like give consent and withdraw consent.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    giveConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified)
    Method to give consent, it either creates a new consent model it it doesn't exist.
    void
    withdrawConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified)
    Method to withdraw consent for the customer and consent template

    Methods inherited from interface de.hybris.platform.commerceservices.consent.CommerceConsentService

    getActiveConsent, getConsent, getConsentTemplate, getConsentTemplates, getLatestConsentTemplate, giveConsent, hasEffectivelyActiveConsent, withdrawConsent
  • Method Details

    • giveConsent

      void giveConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified)
      Method to give consent, it either creates a new consent model it it doesn't exist. If it exists then update the existing model with last consent modified date
      Parameters:
      customer - the customer who gave consent
      template - the consent template
      lastConsentModified - the last consent modified date
    • withdrawConsent

      void withdrawConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified)
      Method to withdraw consent for the customer and consent template
      Parameters:
      customer - the customer who withdrew the consent
      template - the consent template
      lastConsentModified - the last consent modified date