Examples of DisplayableApplicationType


Examples of evolaris.mgbl.gs.web.DisplayableApplicationType

    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

Examples of evolaris.mgbl.gs.web.DisplayableApplicationType

    List<DisplayableArticle> displayArticles = (List<DisplayableArticle>)req.getAttribute("articleList");
    List<DisplayableApplicationType> gameStyles = new ArrayList<DisplayableApplicationType>();
    Blog gameBlog = blogMgr.getBlog("mgblgameinstances", mgblGroup);
    for (DisplayableArticle a : displayArticles) {
      Article blogArticle = blogMgr.getArticle(a.getId());
      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);
      gameStyles.add(entry);
    }
    Collections.sort(gameStyles, new Comparator<DisplayableApplicationType>() {
      public int compare(DisplayableApplicationType o1, DisplayableApplicationType o2) {
        return o1.getTitle().compareToIgnoreCase(o2.getTitle());
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.