Interface ConsentTemplateDao
- All Superinterfaces:
GenericDao<ConsentTemplateModel>
- All Known Implementing Classes:
DefaultConsentTemplateDao
Data Access Object for looking up items related to the consent templates.
-
Method Summary
Modifier and TypeMethodDescriptionfindConsentTemplateByIdAndVersionAndSite(String consentTemplateId, Integer consentTemplateVersion, BaseSiteModel baseSite) Finds consent template for specified id, version and base site.findConsentTemplatesBySite(BaseSiteModel baseSite) Finds available consent templates (in the latest version) for a specified base site.findLatestConsentTemplateByIdAndSite(String consentTemplateId, BaseSiteModel baseSite) Finds the latest version of a consent template for a specified id and base site.
-
Method Details
-
findLatestConsentTemplateByIdAndSite
ConsentTemplateModel findLatestConsentTemplateByIdAndSite(String consentTemplateId, BaseSiteModel baseSite) Finds the latest version of a consent template for a specified id and base site.- Parameters:
consentTemplateId- the id of the consent templatebaseSite- the base site to get the consent template for- Returns:
- the consent template
-
findConsentTemplateByIdAndVersionAndSite
ConsentTemplateModel findConsentTemplateByIdAndVersionAndSite(String consentTemplateId, Integer consentTemplateVersion, BaseSiteModel baseSite) Finds consent template for specified id, version and base site.- Parameters:
consentTemplateId- the id of the consent templateconsentTemplateVersion- the version of the consent templatebaseSite- the base site to get the consent template for- Returns:
- the consent template
-
findConsentTemplatesBySite
Finds available consent templates (in the latest version) for a specified base site.- Parameters:
baseSite- the base site to get the consent templates for- Returns:
- available consent templates
-