<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to create a forum, topic and post in JAVA in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-forum-topic-and-post-in-java/m-p/106486#M74539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A topic is simply a subtype of cm:folder so to create a topic within a forum you simply create a 'normal' space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see this by looking at CreateTopicDialog.finishImpl(), it simply calls the super class 'CreateSpaceDialog' finishImpl method to get the topic created. Then to create the post, this is just a subtype of cm:content, again you can see this being done in CreateTopicDialog.finishImpl() via the following line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;FileInfo fileInfo = this.fileFolderService.create(containerNodeRef, fileName, ForumModel.TYPE_POST);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like you are trying to create another discussion association under the&amp;nbsp; forum space which is incorrect, hence the error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2007 08:45:46 GMT</pubDate>
    <dc:creator>gavinc</dc:creator>
    <dc:date>2007-08-22T08:45:46Z</dc:date>
    <item>
      <title>how to create a forum, topic and post in JAVA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-forum-topic-and-post-in-java/m-p/106485#M74538</link>
      <description>hello,I try to create a discussion (so a forum on a document) in JAVA and I don't know how to create topics and post…I try this: NodeRef nodeDiscussion = rs.getNodeRef(0); // from a lucene query to find the document…&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ChildAssociationRef childRef;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NodeRef destinationForum;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(</description>
      <pubDate>Wed, 22 Aug 2007 08:26:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-forum-topic-and-post-in-java/m-p/106485#M74538</guid>
      <dc:creator>michel</dc:creator>
      <dc:date>2007-08-22T08:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a forum, topic and post in JAVA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-forum-topic-and-post-in-java/m-p/106486#M74539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A topic is simply a subtype of cm:folder so to create a topic within a forum you simply create a 'normal' space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see this by looking at CreateTopicDialog.finishImpl(), it simply calls the super class 'CreateSpaceDialog' finishImpl method to get the topic created. Then to create the post, this is just a subtype of cm:content, again you can see this being done in CreateTopicDialog.finishImpl() via the following line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;FileInfo fileInfo = this.fileFolderService.create(containerNodeRef, fileName, ForumModel.TYPE_POST);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like you are trying to create another discussion association under the&amp;nbsp; forum space which is incorrect, hence the error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 08:45:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-forum-topic-and-post-in-java/m-p/106486#M74539</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-08-22T08:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a forum, topic and post in JAVA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-forum-topic-and-post-in-java/m-p/106487#M74540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, it works now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:47:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-forum-topic-and-post-in-java/m-p/106487#M74540</guid>
      <dc:creator>michel</dc:creator>
      <dc:date>2007-08-22T09:47:19Z</dc:date>
    </item>
  </channel>
</rss>

