Class DefaultYmktConsentService
- java.lang.Object
-
- com.hybris.ymkt.common.consent.impl.DefaultYmktConsentService
-
- All Implemented Interfaces:
YmktConsentService
public class DefaultYmktConsentService extends java.lang.Object implements YmktConsentService
-
-
Constructor Summary
Constructors Constructor Description DefaultYmktConsentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetUserConsent(java.lang.String consentID)Consent verification for current session user.booleangetUserConsent(java.lang.String customerId, java.lang.String consentID)Consent verification for provided customer.
-
-
-
Method Detail
-
getUserConsent
public boolean getUserConsent(java.lang.String consentID)
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
public boolean getUserConsent(java.lang.String customerId, java.lang.String consentID)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.
-
-