Class DefaultConsentDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<ConsentModel>
de.hybris.platform.commerceservices.consent.dao.impl.DefaultConsentDao
- All Implemented Interfaces:
ConsentDao,GenericDao<ConsentModel>
Default implementation of
ConsentDao interface extending DefaultGenericDao-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllConsentsByCustomer(CustomerModel customer) Finds all consents for the specified customer.findConsentByCustomerAndConsentTemplate(CustomerModel customer, ConsentTemplateModel consentTemplate) Finds the latest consent for the specified customer and consent template.populateBasicQueryParams(CustomerModel customer, ConsentTemplateModel consentTemplate) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultConsentDao
public DefaultConsentDao()
-
-
Method Details
-
findConsentByCustomerAndConsentTemplate
public ConsentModel findConsentByCustomerAndConsentTemplate(CustomerModel customer, ConsentTemplateModel consentTemplate) Description copied from interface:ConsentDaoFinds the latest consent for the specified customer and consent template.- Specified by:
findConsentByCustomerAndConsentTemplatein interfaceConsentDao- Parameters:
customer- the customer to get the consent forconsentTemplate- the consent template to get the consent for- Returns:
- the consent if found, otherwise null
-
populateBasicQueryParams
protected Map<String,Object> populateBasicQueryParams(CustomerModel customer, ConsentTemplateModel consentTemplate) -
findAllConsentsByCustomer
Description copied from interface:ConsentDaoFinds all consents for the specified customer.- Specified by:
findAllConsentsByCustomerin interfaceConsentDao- Parameters:
customer- the customer to get the consents for- Returns:
- the consents
-