Class CommentManager
- java.lang.Object
-
- lumis.service.socialnetworkservices.microblog.core.manager.CommentManager
-
public class CommentManager extends Object
Manager class used to deal with issues related to post-comments.- Since:
- 6.1.0
- Version:
- $Revision: 13752 $ $Date: 2011-10-13 14:10:51 -0300 (Thu, 13 Oct 2011) $
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(Comment comment)
Method that deletes an user commentList<Comment>
findByAuthorId(String authorId)
Method that retrieves a list of comments given an author idComment
findById(String commentId)
Method that retrieves a Comment by a given IdList<Comment>
findByPostId(String postId)
Method that retrieves a list of comments given an post idstatic CommentManager
getInstance()
Singleton method that retrieves a instance of this class.void
remove(Comment comment)
Method that enables a flag indicating that the comment is no longer available for display.
-
-
-
Method Detail
-
getInstance
public static CommentManager getInstance()
Singleton method that retrieves a instance of this class.- Returns:
- an instance of CommentManager
- Since:
- 6.1.0
-
remove
public void remove(Comment comment)
Method that enables a flag indicating that the comment is no longer available for display.- Parameters:
commentId
- Identifier of the comment- Since:
- 6.1.0
-
delete
public void delete(Comment comment)
Method that deletes an user comment- Parameters:
comment
- the comment itself- Since:
- 6.1.0
-
findById
public Comment findById(String commentId)
Method that retrieves a Comment by a given Id- Parameters:
commentId
- the Id of the Comment- Returns:
- the Comment
- Since:
- 6.1.0
-
findByAuthorId
public List<Comment> findByAuthorId(String authorId)
Method that retrieves a list of comments given an author id- Parameters:
authorId
- id of the author whose comment should be found- Returns:
- a list of comments from the given author id.
- Since:
- 6.1.0
-
-