Interface EventCommentService
- All Known Implementing Classes:
EventCommentServiceImpl
public interface EventCommentService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteComment(long commentId) Delete a comment from an event.voiddeleteComments(String eventId) Delete all comments from an event.getComment(long commentId) Get a comment for a particular event.getComments(String eventId) Get all of the comments for an event.Get the available reasons for commenting on an event.updateComment(EventComment comment) Update a comment.
-
Method Details
-
getReasons
Get the available reasons for commenting on an event.- Returns:
- A list of reasons of why a comment was made.
- Throws:
EventCommentException- Thrown if there was an issue getting the comment reasons.
-
getComment
Get a comment for a particular event.- Parameters:
commentId- The id for the comment.- Returns:
- The comment
- Throws:
NotFoundException- Thrown if the comment cannot be found.EventCommentException- Thrown if there was an issue getting the comment.
-
getComments
Get all of the comments for an event.- Parameters:
eventId- The id of the event to get the comments for (mediapackage id).- Returns:
- The
Listof comments. - Throws:
EventCommentException- Thrown if there was a problem getting the comments.
-
deleteComment
Delete a comment from an event.- Parameters:
commentId- The id of the comment.- Throws:
NotFoundException- Thrown if cannot find the event / comment.EventCommentException- Thrown if there is a problem deleting the comment.
-
deleteComments
Delete all comments from an event.- Parameters:
eventId- The id of the event to get the comments for (mediapackage id).- Throws:
NotFoundException- Thrown if cannot find the eventEventCommentException- Thrown if there is a problem deleting the comments.
-
updateComment
Update a comment.- Parameters:
comment- The new comment status to update to.- Returns:
- The comment updated.
- Throws:
EventCommentException- Thrown if there is a problem updating the comment.
-