org.apache.aries.samples.blog.api
Interface BlogCommentManager


public interface BlogCommentManager


Method Summary
 void createComment(String comment, String email, long entryId)
          Create a comment by an author (email) against a post (Id)
 void deleteComment(int id)
          Delete a specific comment using it's id
 List<? extends BlogComment> getCommentsByAuthor(String email)
          Get all the comments made by an author
 List<? extends BlogComment> getCommentsForPost(long id)
           
 boolean isCommentingAvailable()
          Check to see whether the comment service is available
 

Method Detail

createComment

void createComment(String comment,
                   String email,
                   long entryId)
Create a comment by an author (email) against a post (Id)

Parameters:
comment -
email -
entryId -

getCommentsByAuthor

List<? extends BlogComment> getCommentsByAuthor(String email)
Get all the comments made by an author

Parameters:
email -
Returns:
a list of comments made by an author

getCommentsForPost

List<? extends BlogComment> getCommentsForPost(long id)
Parameters:
id -
Returns:
A list of comments made about an entry

deleteComment

void deleteComment(int id)
Delete a specific comment using it's id

Parameters:
id -

isCommentingAvailable

boolean isCommentingAvailable()
Check to see whether the comment service is available

Returns:


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