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 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 interface de.hybris.platform.commerceservices.consent.CommerceConsentService
getActiveConsent, getConsent, getConsentTemplate, getConsentTemplates, getLatestConsentTemplate, giveConsent, hasEffectivelyActiveConsent, withdrawConsent
-
Method Details
-
giveConsent
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 consenttemplate- the consent templatelastConsentModified- 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 consenttemplate- the consent templatelastConsentModified- the last consent modified date
-