Class DefaultYmktConsentService
java.lang.Object
com.hybris.ymkt.common.consent.impl.DefaultYmktConsentService
- All Implemented Interfaces:
YmktConsentService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetUserConsent(String consentID) Consent verification for current session user.booleangetUserConsent(String customerId, String consentID) Consent verification for provided customer.
-
Constructor Details
-
DefaultYmktConsentService
public DefaultYmktConsentService()
-
-
Method Details
-
getUserConsent
Description copied from interface:YmktConsentServiceConsent verification for current session user.- Specified by:
getUserConsentin interfaceYmktConsentService- Parameters:
consentID- Property prefix of yMKT consent Id.- Returns:
trueif the user has consent,falseotherwise.
-
getUserConsent
Description copied from interface:YmktConsentServiceConsent verification for provided customer.- Specified by:
getUserConsentin interfaceYmktConsentService- Parameters:
customerId- Value ofCustomer.customerID.consentID- Value of yMKTConsentTemplate.id.- Returns:
trueif the customer has consent,falseotherwise.
-