Class DefaultConsentDao

    • Constructor Detail

      • DefaultConsentDao

        public DefaultConsentDao()
    • Method Detail

      • findConsentByCustomerAndConsentTemplate

        public ConsentModel findConsentByCustomerAndConsentTemplate​(CustomerModel customer,
                                                                    ConsentTemplateModel consentTemplate)
        Description copied from interface: ConsentDao
        Finds the latest consent for the specified customer and consent template.
        Specified by:
        findConsentByCustomerAndConsentTemplate in interface ConsentDao
        Parameters:
        customer - the customer to get the consent for
        consentTemplate - the consent template to get the consent for
        Returns:
        the consent if found, otherwise null
      • populateBasicQueryParams

        protected java.util.Map<java.lang.String,​java.lang.Object> populateBasicQueryParams​(CustomerModel customer,
                                                                                                  ConsentTemplateModel consentTemplate)
      • findAllConsentsByCustomer

        public java.util.List<ConsentModel> findAllConsentsByCustomer​(CustomerModel customer)
        Description copied from interface: ConsentDao
        Finds all consents for the specified customer.
        Specified by:
        findAllConsentsByCustomer in interface ConsentDao
        Parameters:
        customer - the customer to get the consents for
        Returns:
        the consents