Package com.knowgate.forums

Examples of com.knowgate.forums.NewsGroup


      JDCConnection oCon = null;

      try  {
        oCon = oDBB.getConnection("PostsForGroup");

        NewsGroup oGrp = new NewsGroup(sNewsGrp);
        DBSubset  oPosts = oGrp.getTopLevelMessages(oCon, iMaxRecent, sOrderBy);
        iPosts = oPosts.getRowCount();

        oCon.close("PostsForGroup");
        oCon = null;
View Full Code Here


        DebugFile.decIdent();
     
      throw new NullPointerException("NewsGroupJournal.rebuild() No NewsGroup with GUID "+getGuid()+" found at "+DB.k_newsgroups+" table");
  }
 
  NewsGroup oNewsGrp = new NewsGroup();

  if (!oNewsGrp.load(oConn, getGuid())) {
      if (DebugFile.trace) {
        DebugFile.writeln("NewsGroupJournal.rebuild() No NewsGroup with GUID "+getGuid()+" found at "+DB.k_newsgroups+" table");
        DebugFile.decIdent();
     
      throw new SQLException("NewsGroupJournal.rebuild() No NewsGroup with GUID "+getGuid()+" found at "+DB.k_newsgroups+" table");
  } // fi
 
  String sXmlProlog = "<?xml version=\"1.0\" encoding=\""+getEncoding()+"\"?>\n";
  String sNewsGrpXml = oNewsGrp.toXML(oConn);
  String sMonthsWithPosts = Forums.XMLListMonthsWithPosts(oConn, getGuid(), getLanguage());

  FileSystem oFs = new FileSystem();
  try { oFs.mkdirs("file://"+getOutputPath()+"archives"); } catch (Exception ignore) { }
View Full Code Here

TOP

Related Classes of com.knowgate.forums.NewsGroup

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.