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 ofConsentDao
interface 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.ConsentModel
findConsentByCustomerAndConsentTemplate(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:ConsentDao
Finds the latest consent for the specified customer and consent template.- Specified by:
findConsentByCustomerAndConsentTemplate
in 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:ConsentDao
Finds all consents for the specified customer.- Specified by:
findAllConsentsByCustomer
in interfaceConsentDao
- Parameters:
customer
- the customer to get the consents for- Returns:
- the consents
-
-