org.apache.aries.samples.blog.api.comment.persistence
Interface BlogCommentService


public interface BlogCommentService


Method Summary
 void createComment(String comment, String authorEmail, long entryId)
          Create a comment against a blog entry.
 void delete(int id)
          Delete a blog entry comment
 List<? extends Comment> getCommentsForAuthor(String emailAddress)
          Get comments for a given author.
 List<? extends Comment> getCommentsForEntry(long id)
          Get comments for a given blog entry post.
 

Method Detail

createComment

void createComment(String comment,
                   String authorEmail,
                   long entryId)
Create a comment against a blog entry.

Parameters:
comment - the comment text
author - the author
blogEntry - the blog entry against which we are commenting

delete

void delete(int id)
Delete a blog entry comment

Parameters:
comment - the comment being deleted.

getCommentsForEntry

List<? extends Comment> getCommentsForEntry(long id)
Get comments for a given blog entry post.

Parameters:
id - the blog entry id
Returns:
a List for the blog entry

getCommentsForAuthor

List<? extends Comment> getCommentsForAuthor(String emailAddress)
Get comments for a given author.

Parameters:
emailAddress - the email address of the author
Returns:
a List for the given email address


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.