Interface ConsentDao

All Superinterfaces:
GenericDao<ConsentModel>
All Known Implementing Classes:
DefaultConsentDao

public interface ConsentDao extends GenericDao<ConsentModel>
Data Access Object for looking up items related to the consents.
  • Method Details

    • findConsentByCustomerAndConsentTemplate

      ConsentModel findConsentByCustomerAndConsentTemplate(CustomerModel customer, ConsentTemplateModel consentTemplate)
      Finds the latest consent for the specified customer and consent template.
      Parameters:
      customer - the customer to get the consent for
      consentTemplate - the consent template to get the consent for
      Returns:
      the consent if found, otherwise null
    • findAllConsentsByCustomer

      List<ConsentModel> findAllConsentsByCustomer(CustomerModel customer)
      Finds all consents for the specified customer.
      Parameters:
      customer - the customer to get the consents for
      Returns:
      the consents