@ModelAttribute("countScheduled") public long countScheduled(@PathVariable String language) { return articleService.countArticlesByStatus(Post.Status.SCHEDULED, language); }
@ModelAttribute("countPublished") public long countPublished(@PathVariable String language) { return articleService.countArticlesByStatus(Post.Status.PUBLISHED, language); }
@ModelAttribute("countDraft") public long countDraft(@PathVariable String language) { return articleService.countArticlesByStatus(Post.Status.DRAFT, language); }