* @see org.encuestame.core.service.imp.ITweetPollService#chaneCommentStatusTweetPoll(java.lang.Long, java.lang.String)
*/
public void chaneCommentStatusTweetPoll(final Long tweetPollId, final String username)
throws EnMeNoResultsFoundException, EnmeFailOperation{
final TweetPoll tweetPoll = this.getTweetPoll(tweetPollId, username);
final CommentOptions commentOption = tweetPoll.getShowComments();
if (commentOption == null) {
tweetPoll.setShowComments(CommentOptions.MODERATE);
} else if (commentOption.equals(CommentOptions.MODERATE)) {
tweetPoll.setShowComments(CommentOptions.PUBLISHED);
} else if (commentOption.equals(CommentOptions.PUBLISHED)) {
tweetPoll.setShowComments(CommentOptions.MODERATE);
}
getTweetPollDao().saveOrUpdate(tweetPoll);
}