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>
public class DefaultConsentDao extends DefaultGenericDao<ConsentModel> implements ConsentDao
Default implementation ofConsentDaointerface extendingDefaultGenericDao
-
-
Constructor Summary
Constructors Constructor Description DefaultConsentDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ConsentModel>findAllConsentsByCustomer(CustomerModel customer)Finds all consents for the specified customer.ConsentModelfindConsentByCustomerAndConsentTemplate(CustomerModel customer, ConsentTemplateModel consentTemplate)Finds the latest consent for the specified customer and consent template.protected java.util.Map<java.lang.String,java.lang.Object>populateBasicQueryParams(CustomerModel customer, ConsentTemplateModel consentTemplate)-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
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 java.util.Map<java.lang.String,java.lang.Object> populateBasicQueryParams(CustomerModel customer, ConsentTemplateModel consentTemplate)
-
findAllConsentsByCustomer
public java.util.List<ConsentModel> findAllConsentsByCustomer(CustomerModel customer)
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
-
-