Package com.hybris.ymkt.common.consent
Interface YmktConsentService
-
- All Known Implementing Classes:
DefaultYmktConsentService
,DefaultYmktConsentService
public interface YmktConsentService
Consent service for yMKT integration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getUserConsent(java.lang.String consentId)
Consent verification for current session user.boolean
getUserConsent(java.lang.String customerId, java.lang.String consentId)
Consent verification for provided customer.
-
-
-
Method Detail
-
getUserConsent
boolean getUserConsent(java.lang.String consentId)
Consent verification for current session user.- Parameters:
consentId
- Property prefix of yMKT consent Id.- Returns:
true
if the user has consent,false
otherwise.
-
getUserConsent
boolean getUserConsent(java.lang.String customerId, java.lang.String consentId)
Consent verification for provided customer.- Parameters:
customerId
- Value ofCustomer.customerID
.consentId
- Value of yMKTConsentTemplate.id
.- Returns:
true
if the customer has consent,false
otherwise.
-
-