<?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: where should nodes get created? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/where-should-nodes-get-created/m-p/222596#M175726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You probably want to use cm:contains rather than sys:children.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To write a content property there are some convienence methods on the Node Service that allow you to write Strings to a content properties.&amp;nbsp;&amp;nbsp; And you should also look at the Content Service that will allow you to get a ContentWriter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2010 23:29:22 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2010-01-04T23:29:22Z</dc:date>
    <item>
      <title>where should nodes get created?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-should-nodes-get-created/m-p/222595#M175725</link>
      <description>I have put something similar to the following in the executeImpl method of an ActionExecuterAbstractBase subclass.NodeRef parent = nodeService.getPrimaryParent(actionedUponNodeRef).getParentRef();Map&amp;lt;QName, Serializable&amp;gt; props = new TreeMap&amp;lt;QName, Serializable&amp;gt;();props.put(QName.createQN</description>
      <pubDate>Sat, 02 Jan 2010 23:15:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-should-nodes-get-created/m-p/222595#M175725</guid>
      <dc:creator>gengstrand</dc:creator>
      <dc:date>2010-01-02T23:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: where should nodes get created?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-should-nodes-get-created/m-p/222596#M175726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You probably want to use cm:contains rather than sys:children.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To write a content property there are some convienence methods on the Node Service that allow you to write Strings to a content properties.&amp;nbsp;&amp;nbsp; And you should also look at the Content Service that will allow you to get a ContentWriter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 23:29:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-should-nodes-get-created/m-p/222596#M175726</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-01-04T23:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: where should nodes get created?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-should-nodes-get-created/m-p/222597#M175727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, mrogers, your advise was perfect. Here is the corrected, and working, sample code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;NodeRef parent = nodeService.getPrimaryParent(actionedUponNodeRef).getParentRef();&lt;BR /&gt;props = new TreeMap&amp;lt;QName, Serializable&amp;gt;();&lt;BR /&gt;props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "name"), "test dump");&lt;BR /&gt;props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "title"), "testing node create");&lt;BR /&gt;props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "author"), "Glenn");&lt;BR /&gt;props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "description"), "test description");&lt;BR /&gt;ChildAssociationRef td = nodeService.createNode(parent, &lt;BR /&gt;&amp;nbsp; ContentModel.ASSOC_CONTAINS, &lt;BR /&gt;&amp;nbsp; QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "test dump"),&lt;BR /&gt;&amp;nbsp; QName.createQName("kato.model", "criteria"),&lt;BR /&gt;&amp;nbsp; props);&lt;BR /&gt;ContentWriter writer = contentService.getWriter(td.getChildRef(), ContentModel.PROP_CONTENT, true);&lt;BR /&gt;writer.putContent("test content");&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:24:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-should-nodes-get-created/m-p/222597#M175727</guid>
      <dc:creator>gengstrand</dc:creator>
      <dc:date>2010-01-06T05:24:53Z</dc:date>
    </item>
  </channel>
</rss>

