Package org.nemesis.forum

Examples of org.nemesis.forum.Forum.threads()


    flush(auth);
    Forum f=null;
    ForumThread ft=null;
    for(Iterator it=forumFactory.forums();it.hasNext();){
      f=(Forum)it.next();
      for(Iterator it2=f.threads();it2.hasNext();){
        ft=(ForumThread)it2.next();
        index(ft.getRootMessage());
      }
    }
   
View Full Code Here


  public void cleanDatabase() {
    //Iterate through all forums, threads to delete unwanted messages.
    Iterator forums = forums();
    while (forums.hasNext()) {
      Forum forum = (Forum) forums.next();
      Iterator threads = forum.threads();
      while (threads.hasNext()) {
        try {
          ForumThread thread = (ForumThread) threads.next();
          Iterator messages = thread.messages();
          while (messages.hasNext()) {
View Full Code Here

     
      request.setAttribute("nbItems",new Integer(forum.getThreadCount()));
     
     
      List tbs = new ArrayList();
      Iterator threadIterator = forum.threads(start,maxPageItems); //start,range

      ThreadBean tb = null;

      while (threadIterator.hasNext()) {
        ForumThread currentThread = (ForumThread) threadIterator.next();
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.