- public Optional<Post> getPost(String postId) {
- return database.getPost(postId);
- }
-
- public Collection<Post> getPosts(String soneId) {
- return database.getPosts(soneId);
- }
-
- public Collection<Post> getDirectedPosts(final String recipientId) {
- checkNotNull(recipientId, "recipient must not be null");
- return database.getDirectedPosts(recipientId);
- }
-