Examples of IFrontEndService


Examples of org.encuestame.core.service.imp.IFrontEndService

     * @return
     */
    @RequestMapping(value = "/cloud", method = RequestMethod.GET)
    public String hashTagController(ModelMap model, HttpServletRequest request,
            HttpServletResponse response) {
        final IFrontEndService service = getFrontService();
        final List<HashTagBean> hashTagList = service.getHashTags(MAX_HASHTAG,
                0, "hashTagsCloud"); // TODO: Add to file properties number 20
        model.addAttribute("hashtags", hashTagList);
        return "cloud";
    }
View Full Code Here

Examples of org.encuestame.core.service.imp.IFrontEndService

            return "redirect:/user/signin";
        } else {
            final String view = filterValue(request.getParameter("view"));
            String period = filterValue(request.getParameter("period"));
            period = (period.isEmpty() ? SHOW_ALL_RESULTS : period);
            final IFrontEndService service = getFrontService();
            try {
                if (view.isEmpty()) {
                    model.addAttribute("items", service.getFrontEndItems(period, EnMeUtils.DEFAULT_START , this.homeMaxItems, request));
                } else {
                    if ("tweetpoll".equals(view)) {
                        model.addAttribute("items", ConvertDomainBean
                                .convertTweetPollListToHomeBean(service
                                        .searchItemsByTweetPoll(period, EnMeUtils.DEFAULT_START,
                                                this.homeMaxItems, request)));
                    } else if ("poll".equals(view)) {
                        model.addAttribute("items",
                                ConvertDomainBean
                                        .convertPollListToHomeBean(service
                                                .searchItemsByPoll(period, EnMeUtils.DEFAULT_START,
                                                        this.homeMaxItems)));
                    } else if ("survey".equals(view)) {
                        //TODO: ENCUESTAME-345
                        model.addAttribute("items", ListUtils.EMPTY_LIST);
                    } else {
                        model.addAttribute("items", service
                                .searchItemsByTweetPoll(period, EnMeUtils.DEFAULT_START, this.homeMaxItems,
                                        request));
                    }
                }
                //TODO: review this code, is used?
                model.addAttribute("hashTags", service.getHashTags(this.homeHashtagMaxItems, EnMeUtils.DEFAULT_START, ""));
                //TODO: search hashtags and other information.
                //TODO: comments: ENCUESTAME-346
            } catch (EnMeSearchException e) {
                log.error(e);
                return "error";
View Full Code Here

Examples of org.encuestame.core.service.imp.IFrontEndService

            @RequestParam(value = "limit", required = false) Integer limit,
            HttpServletRequest request,
            HttpServletResponse response) throws JsonGenerationException, JsonMappingException, IOException {
         try {
             final Map<String, Object> jsonResponse = new HashMap<String, Object>();
             final IFrontEndService service = getFrontService();
             final List<HashTagBean> hashTagList;
             //TODO: please replace "hashTagsCloud" by ENUM.
             hashTagList = service.getHashTags( limit == null ? hashtagsCloudLimit : limit , START_DEFAULT, "hashTagsCloud");
             // TODO: ENCUESTAME-347
             jsonResponse.put("cloud", hashTagList);
             setItemResponse(jsonResponse);
            } catch (Exception e) {
            log.error(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.