public interface CommerceConsentService
ConsentModel and ConsentTemplateModel.| Modifier and Type | Method and Description |
|---|---|
ConsentModel |
getActiveConsent(CustomerModel customer,
ConsentTemplateModel consentTemplate)
Finds the latest consent for the specified customer and consent template.
|
ConsentModel |
getConsent(java.lang.String consentCode)
Finds the consent for the specified code
|
ConsentTemplateModel |
getConsentTemplate(java.lang.String consentTemplateId,
java.lang.Integer consentTemplateVersion,
BaseSiteModel baseSite)
Finds the consent for the supplied
ConsentTemplate, consentTemplateVersion and
baseSite. |
java.util.List<ConsentTemplateModel> |
getConsentTemplates(BaseSiteModel baseSite)
Finds all available consent templates (in the latest version) for the given
consentTemplateId and
baseSite. |
ConsentTemplateModel |
getLatestConsentTemplate(java.lang.String consentTemplateId,
BaseSiteModel baseSite)
Finds the latest version of a
ConsentTemplate for the given consentTemplateId and
baseSite. |
void |
giveConsent(CustomerModel customer,
ConsentTemplateModel consentTemplate)
Gives consent for the specified customer and consent template.
|
void |
withdrawConsent(ConsentModel consent)
Withdraws consent for the specified ConsentModel by updating the consentWithdrawnDate.
|
java.util.List<ConsentTemplateModel> getConsentTemplates(BaseSiteModel baseSite)
consentTemplateId and
baseSite.baseSite - the baseSite to retrieve the consent template for.ConsentTemplateModel getConsentTemplate(java.lang.String consentTemplateId, java.lang.Integer consentTemplateVersion, BaseSiteModel baseSite)
ConsentTemplate, consentTemplateVersion and
baseSite.consentTemplateId - the id of the consent template to retrieve the consent for.consentTemplateVersion - the version of the consent template to retrieve the consent for.baseSite - the baseSite to retrieve the consent template for.ConsentTemplateModel getLatestConsentTemplate(java.lang.String consentTemplateId, BaseSiteModel baseSite)
ConsentTemplate for the given consentTemplateId and
baseSite.consentTemplateId - the id of the consent template to retrieve the consent for.baseSite - the baseSite to retrieve the consent template for.ConsentModel getConsent(java.lang.String consentCode)
consentCode - the consent code to get the consent forConsentModel getActiveConsent(CustomerModel customer, ConsentTemplateModel consentTemplate)
customer - the customer to get the consent forconsentTemplate - the consent template to get the consent forvoid giveConsent(CustomerModel customer, ConsentTemplateModel consentTemplate)
Consent and sets the
consentGivenDate.customer - the customer to give the consent forconsentTemplate - the consent template to give the consent forvoid withdrawConsent(ConsentModel consent)
consent - the consent to withdraw the consent forCopyright © 2017 SAP SE. All Rights Reserved.