@ Programmatic public List < DocumentTemplate > findByApplicableToAtPathAndCurrent ( final String atPath ) { final LocalDate now = clockService . now ( ) ; return repositoryService . allMatches ( new QueryDefault <> ( DocumentTemplate . class , "findByApplicableToAtPathAndCurrent" , "atPath" , atPath , "now" , now ) ) ; }
Returns all templates available for a particular application tenancy ordered by most specific tenancy first and then within that the most recent first .