velocityEngine, HTML_TEMPLATES + "/tweetpoll_votes.vm", "utf-8", model);
embebedBody.setAditionalInfo(tpollDetail.getResults());
} else if (TypeSearchResult.POLL.equals(typeItem)) {
// generate poll body
final Poll poll = getPollService().getPollById(pollId);
final PollDetailBean detailBean = getPollService().getPollDetailInfo(poll.getPollId());
model.put("owner_picture", domain + "/picture/profile/" + poll.getEditorOwner().getUsername() + "/thumbnail");
model.put("editorOwner", poll.getEditorOwner());
model.put("title", poll.getQuestion().getQuestion());
model.put("date_published", EnMeUtils.formatDate(poll.getCreateDate(), "HH:mm - d MMMM yyyy"));
model.put("poll", poll);
model.put("action", WidgetUtil.getDomain(request) + "/poll/vote/post");
model.put("detailBean", detailBean);
model.put("vote_title", "Vote");
text = VelocityEngineUtils.mergeTemplateIntoString(
velocityEngine, HTML_TEMPLATES + "/poll_form.vm", "utf-8", model);
} else if (TypeSearchResult.POLLRESULT.equals(typeItem)) {
// generate poll body
final Poll poll = getPollService().getPollById(pollId);
final PollDetailBean detailBean = getPollService().getPollDetailInfo(poll.getPollId());
model.put("owner_picture", domain + "/picture/profile/" + poll.getEditorOwner().getUsername() + "/thumbnail");
model.put("editorOwner", poll.getEditorOwner());
model.put("question", poll.getQuestion());
model.put("url", EnMeUtils.createUrlPollAccess(domain, poll));
model.put("answersList", detailBean.getResults());
model.put("date_published", EnMeUtils.formatDate(poll.getCreateDate(), "HH:mm - d MMMM yyyy"));
text = VelocityEngineUtils.mergeTemplateIntoString(
velocityEngine, HTML_TEMPLATES + "/tweetpoll_votes.vm", "utf-8", model);
embebedBody.setAditionalInfo(detailBean.getResults());
} else if (TypeSearchResult.HASHTAG.equals(typeItem)) {
// generate hashtag body
model.put("hellow", "world");
text = VelocityEngineUtils.mergeTemplateIntoString(
velocityEngine, HTML_TEMPLATES + "/hashtag.vm", "utf-8", model);