Interface ConsentTemplateDao

    • Method Detail

      • findLatestConsentTemplateByIdAndSite

        ConsentTemplateModel findLatestConsentTemplateByIdAndSite​(java.lang.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​(java.lang.String consentTemplateId,
                                                                      java.lang.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

        java.util.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