-
- });
- int page = request.getHttpRequest().getIntParam("page", 0);
- Pagination<Post> postPagination = new Pagination<Post>(allPosts, 25).setPage(page);
- List<Post> postsOnPage = postPagination.getItems();
- template.set("posts", postsOnPage);
- template.set("pagination", postPagination);
- }
-
- //
- // SONETEMPLATEPAGE METHODS
- //
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected boolean requiresLogin() {
- return true;
+ allPosts.addAll(webInterface.getCore().getSone(friendSoneId).getPosts());
+ }
+ Collections.sort(allPosts, Post.TIME_COMPARATOR);
+ template.set("posts", allPosts);