Interface ConsentDao
- All Superinterfaces:
GenericDao<ConsentModel>
- All Known Implementing Classes:
DefaultConsentDao
Data Access Object for looking up items related to the consents.
-
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.
-
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 forconsentTemplate- the consent template to get the consent for- Returns:
- the consent if found, otherwise null
-
findAllConsentsByCustomer
Finds all consents for the specified customer.- Parameters:
customer- the customer to get the consents for- Returns:
- the consents
-