Package evolaris.framework.blog.business

Examples of evolaris.framework.blog.business.BlogManager


    if (searchResults == null) {
      searchResults = new ArrayList<Long>();
    }
   
    GroupManager groupMgr = new GroupManager(locale, session);
    BlogManager blogMgr = new BlogManager(locale, session);
    Group mgblGroup = groupMgr.getGroup("mgbl");
    Blog gameBlog = blogMgr.getBlog("mgblgameinstances", mgblGroup);
    List<DisplayableApplicationType> entries = new ArrayList<DisplayableApplicationType>();
    for (Long id : searchResults) {
      Article blogArticle = blogMgr.getArticle(id);
      DisplayableApplicationType entry = new DisplayableApplicationType(blogArticle);
      Label label = blogMgr.getLabel(gameBlog, blogArticle.getTitle());
      Collection<Article> gameList = label != null ? blogMgr.getArchivedArticles(gameBlog, label) : null;
      entry.setGameCount(gameList != null ? gameList.size() : 0);
      entries.add(entry);
    }
    req.setAttribute("articleList", entries);
    return mapping.findForward("display");
View Full Code Here

TOP

Related Classes of evolaris.framework.blog.business.BlogManager

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.