Interface TemplateDAO

    • Method Detail

      • findByName

        Template findByName​(String name,
                            long tenantId)
        This method finds a template by name
        Parameters:
        name - Name of the template
        tenantId - ID of the owning tenant
        Returns:
        Template with given name
      • countDocs

        int countDocs​(long id)
        Counts the total number of documents using this template
        Parameters:
        id - The template ID
        Returns:
        the documents count
      • findByType

        List<Template> findByType​(int type,
                                  long tenantId)
        This method finds a template by type
        Parameters:
        type - Type of the template
        tenantId - ID of the owning tenant
        Returns:
        Template with given type