Package ru.org.linux.user

Examples of ru.org.linux.user.Profile


  private LastMiniNewsDao lastMiniNewsDao;

  @Override
  @RequestMapping("/lastMiniNews.boxlet")
  protected ModelAndView getData(HttpServletRequest request) {
    Profile profile = Template.getTemplate(request).getProf();

    Map<String, Object> params = new HashMap<>();
    params.put("topics", lastMiniNewsDao.getTopics(profile.getMessages()));

    return new ModelAndView("boxlets/lastMiniNews", params);
  }
View Full Code Here


  }

  @Override
  @RequestMapping("/top10.boxlet")
  protected ModelAndView getData(HttpServletRequest request) {
    Profile profile = Template.getTemplate(request).getProf();
    final int itemsPerPage = profile.getMessages();

    List<TopTenMessageDTO> list = topTenDao.getMessages();
    CollectionUtils.forAllDo(list, new Closure() {
      @Override
      public void execute(Object o) {
View Full Code Here

    List<Topic> messages = topicListService.getMainPageFeed(tmpl.getProf().isShowGalleryOnMain());

    ModelAndView mv = new ModelAndView("index");

    Profile profile = tmpl.getProf();

    mv.getModel().put("news", prepareService.prepareMessagesForUser(
            profile.isMiniNewsBoxletOnMainPage() ? filterMiniNews(messages) : messages,
            request.isSecure(),
            tmpl.getCurrentUser(),
            profile,
            false
    ));
View Full Code Here

TOP

Related Classes of ru.org.linux.user.Profile

Copyright © 2018 www.massapicom. 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.