* (non-Javadoc)
* @see org.encuestame.core.service.imp.IPollService#updatePoll(org.encuestame.utils.web.PollBean)
*/
public Poll updatePoll(final PollBean pollBean)
throws EnMeNoResultsFoundException {
final Poll poll = getPollById(pollBean.getId(),
getUserPrincipalUsername());
Assert.notNull(poll);
final Question questionDomain = poll.getQuestion();
questionDomain
.setQuestion(pollBean.getQuestionBean().getQuestionName());
questionDomain.setSlugQuestion(RestFullUtil.slugify(pollBean
.getQuestionBean().getQuestionName()));
questionDomain.setCreateDate(DateUtil.getCurrentCalendarDate());
getQuestionDao().saveOrUpdate(questionDomain);
Assert.notNull(questionDomain);
poll.setPollCompleted(pollBean.getCompletedPoll());
poll.setShowResults(ShowResultsOptions.getShowResults(pollBean.getShowResults()));
poll.setShowComments(CommentOptions.getCommentOption(pollBean
.getShowComments()));
poll.setPublish(pollBean.getPublishPoll());
poll.setNotifications(pollBean.getCloseNotification());
poll.getHashTags().addAll(retrieveListOfHashTags(pollBean.getHashTags()));
return poll;
}