Package net.sourceforge.pebble.comparator

Examples of net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator


      if (PebbleContext.getInstance().getConfiguration().isMultiBlog()) {
        httpRequest.setAttribute(Constants.MULTI_BLOG_KEY, BlogManager.getInstance().getMultiBlog());
        httpRequest.setAttribute(Constants.MULTI_BLOG_URL, Utilities.calcBaseUrl(request.getScheme(), BlogManager.getInstance().getMultiBlog().getUrl()));

        List blogs = BlogManager.getInstance().getPublicBlogs();
        Collections.sort(blogs, new BlogByLastModifiedDateComparator());
        httpRequest.setAttribute(Constants.BLOGS, blogs);
      }

      // change the character encoding so that we can successfully get
      // international characters from the request when HTML forms are submitted
View Full Code Here


   *
   * @return  a Collection of Blog instances
   */
  public Collection<Blog> getBlogs() {
    List<Blog> sortedBlogs = new ArrayList<Blog>(blogs.values());
    Collections.sort(sortedBlogs, new BlogByLastModifiedDateComparator());
    return sortedBlogs;
  }
View Full Code Here

      if (PebbleContext.getInstance().getConfiguration().isMultiBlog()) {
        httpRequest.setAttribute(Constants.MULTI_BLOG_KEY, BlogManager.getInstance().getMultiBlog());
        httpRequest.setAttribute(Constants.MULTI_BLOG_URL, Utilities.calcBaseUrl(request.getScheme(), BlogManager.getInstance().getMultiBlog().getUrl()));

        List<Blog> blogs = BlogManager.getInstance().getPublicBlogs();
        Collections.sort(blogs, new BlogByLastModifiedDateComparator());
        httpRequest.setAttribute(Constants.BLOGS, blogs);
      }

      // change the character encoding so that we can successfully get
      // international characters from the request when HTML forms are submitted
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator

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.