Class DefaultGigyaConsentService

java.lang.Object
de.hybris.platform.commerceservices.consent.impl.DefaultCommerceConsentService
de.hybris.platform.gigya.gigyaservices.consent.impl.DefaultGigyaConsentService
All Implemented Interfaces:
de.hybris.platform.commerceservices.consent.CommerceConsentService, GigyaConsentService

public class DefaultGigyaConsentService extends de.hybris.platform.commerceservices.consent.impl.DefaultCommerceConsentService implements GigyaConsentService
Default implementation of GigyaConsentService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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 class de.hybris.platform.commerceservices.consent.impl.DefaultCommerceConsentService

    createConsentModel, getActiveConsent, getConsent, getConsentDao, getConsentTemplate, getConsentTemplateDao, getConsentTemplates, getEventService, getLatestConsentTemplate, getModelService, getTimeService, getUserService, giveConsent, hasEffectivelyActiveConsent, initializeEvent, isConsentGiven, isConsentWithdrawn, setConsentDao, setConsentTemplateDao, setEventService, setModelService, setTimeService, setUserService, withdrawConsent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

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

    • DefaultGigyaConsentService

      public DefaultGigyaConsentService()
  • Method Details

    • giveConsent

      public void giveConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified)
      Description copied from interface: GigyaConsentService
      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
      Specified by:
      giveConsent in interface GigyaConsentService
      Parameters:
      customer - the customer who gave consent
      template - the consent template
      lastConsentModified - the last consent modified date
    • withdrawConsent

      public void withdrawConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified)
      Description copied from interface: GigyaConsentService
      Method to withdraw consent for the customer and consent template
      Specified by:
      withdrawConsent in interface GigyaConsentService
      Parameters:
      customer - the customer who withdrew the consent
      template - the consent template
      lastConsentModified - the last consent modified date