Interface ConsentTemplateDao

All Superinterfaces:
GenericDao<ConsentTemplateModel>
All Known Implementing Classes:
DefaultConsentTemplateDao

public interface ConsentTemplateDao extends GenericDao<ConsentTemplateModel>
Data Access Object for looking up items related to the consent templates.
  • 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 template
      baseSite - 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 template
      consentTemplateVersion - the version of the consent template
      baseSite - the base site to get the consent template for
      Returns:
      the consent template
    • findConsentTemplatesBySite

      List<ConsentTemplateModel> findConsentTemplatesBySite(BaseSiteModel baseSite)
      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