Examples of countMessagesByForumID()


Examples of org.olat.modules.fo.ForumManager.countMessagesByForumID()

      if (log.isDebug()) log.info("Migrating " + allForumKeys.size() + " forums.");
      for (Iterator<Long> iterator = allForumKeys.iterator(); iterator.hasNext();) {
        try{
          Long forumKey = iterator.next();
  //        Long forumKey = new Long(338493441);
          log.audit("  Found forum with key: " + forumKey.toString() + " containing " + fMgr.countMessagesByForumID(forumKey) + " messages to migrate.");
          List<Message> allMessages = fMgr.getMessagesByForumID(forumKey);
          fCounter++;
          int mCounter = 0;
          for (Iterator<Message> iterator2 = allMessages.iterator(); iterator2.hasNext();) {
            try{
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.