@ Programmatic public List < DocumentTemplate > findByType ( final DocumentType documentType ) { return repositoryService . allMatches ( new QueryDefault <> ( DocumentTemplate . class , "findByType" , "type" , documentType ) ) ; }
Returns all templates for a type ordered by application tenancy and date desc .