Class DefaultConsentTemplateDao

    • Constructor Detail

      • DefaultConsentTemplateDao

        public DefaultConsentTemplateDao()
    • Method Detail

      • findLatestConsentTemplateByIdAndSite

        public ConsentTemplateModel findLatestConsentTemplateByIdAndSite​(java.lang.String consentTemplateId,
                                                                         BaseSiteModel baseSite)
        Description copied from interface: ConsentTemplateDao
        Finds the latest version of a consent template for a specified id and base site.
        Specified by:
        findLatestConsentTemplateByIdAndSite in interface ConsentTemplateDao
        Parameters:
        consentTemplateId - the id of the consent template
        baseSite - the base site to get the consent template for
        Returns:
        the consent template
      • findConsentTemplateByIdAndVersionAndSite

        public ConsentTemplateModel findConsentTemplateByIdAndVersionAndSite​(java.lang.String consentTemplateId,
                                                                             java.lang.Integer consentTemplateVersion,
                                                                             BaseSiteModel baseSite)
        Description copied from interface: ConsentTemplateDao
        Finds consent template for specified id, version and base site.
        Specified by:
        findConsentTemplateByIdAndVersionAndSite in interface ConsentTemplateDao
        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