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 -
Method Summary
Modifier and TypeMethodDescriptionvoidgiveConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified) Method to give consent, it either creates a new consent model it it doesn't exist.voidwithdrawConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified) Method to withdraw consent for the customer and consent templateMethods 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, withdrawConsentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:GigyaConsentServiceMethod 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:
giveConsentin interfaceGigyaConsentService- Parameters:
customer- the customer who gave consenttemplate- the consent templatelastConsentModified- the last consent modified date
-
withdrawConsent
public void withdrawConsent(CustomerModel customer, ConsentTemplateModel template, Date lastConsentModified) Description copied from interface:GigyaConsentServiceMethod to withdraw consent for the customer and consent template- Specified by:
withdrawConsentin interfaceGigyaConsentService- Parameters:
customer- the customer who withdrew the consenttemplate- the consent templatelastConsentModified- the last consent modified date
-