예제 #1
0
 @ModelAttribute("countScheduled")
 public long countScheduled(@PathVariable String language) {
   return articleService.countArticlesByStatus(Post.Status.SCHEDULED, language);
 }
예제 #2
0
 @ModelAttribute("countPublished")
 public long countPublished(@PathVariable String language) {
   return articleService.countArticlesByStatus(Post.Status.PUBLISHED, language);
 }
예제 #3
0
 @ModelAttribute("countDraft")
 public long countDraft(@PathVariable String language) {
   return articleService.countArticlesByStatus(Post.Status.DRAFT, language);
 }