// generate hashtag body
model.put("hellow", "world");
text = VelocityEngineUtils.mergeTemplateIntoString(
velocityEngine, HTML_TEMPLATES + "/hashtag.vm", "utf-8", model);
} else if (TypeSearchResult.PROFILE.equals(typeItem)) {
final UserAccount user = getSecurityService().getUserbyId(pollId);
model.put("owner_picture", domain + "/picture/profile/" + user.getUsername() + "/thumbnail");
model.put("editorOwner", user);
model.put("profile", user.getUsername());
model.put("owner_profile_url", domain + "/profile/" + user.getUsername());
model.put("picture", getPictureService().getProfilePicture(user.getUsername(), PictureType.DEFAULT));
model.put("total_tweets", getFrontService().getTotalItemsPublishedByType(user, Boolean.TRUE, TypeSearchResult.TWEETPOLL));
model.put("total_poll", getFrontService().getTotalItemsPublishedByType(user, Boolean.TRUE, TypeSearchResult.POLL));
model.put("total_survey", getFrontService().getTotalItemsPublishedByType(user, Boolean.TRUE, TypeSearchResult.SURVEY));
final List<HomeBean> lastPublication = getFrontService().getLastItemsPublishedFromUserAccount(
user.getUsername(),
max_results,
Boolean.FALSE,
request);
if (lastPublication.size() >= 1) {
model.put("last_publication", lastPublication.get(0));