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 Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
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
java.util.List<ConsentModel> findAllConsentsByCustomer(CustomerModel customer)
Finds all consents for the specified customer.- Parameters:
customer
- the customer to get the consents for- Returns:
- the consents
-
-