<?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: Javascript addNode but cannot addChild in Java? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240640#M193770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this case makes me want to ask the question can we use the javascript api within java in Alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jun 2010 10:25:25 GMT</pubDate>
    <dc:creator>esource</dc:creator>
    <dc:date>2010-06-10T10:25:25Z</dc:date>
    <item>
      <title>Javascript addNode but cannot addChild in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240639#M193769</link>
      <description>In Javascript, I can use the addNode() method to add an existing node to a new space.&amp;nbsp; But in Java if I try to do the same thing with addChild(), I get an error&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.alfresco.service.cmr.repository.DuplicateChildNodeNameException: Duplicate child name not allowed:Is this action allowed in Javascript</description>
      <pubDate>Thu, 10 Jun 2010 10:16:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240639#M193769</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-10T10:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript addNode but cannot addChild in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240640#M193770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this case makes me want to ask the question can we use the javascript api within java in Alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 10:25:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240640#M193770</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-10T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript addNode but cannot addChild in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240641#M193771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you can use the javascript API from Java, you use the script service to run a script.&amp;nbsp; But why bother?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Java API is the one to use and can do everything the Script API can do and more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your error is that you are trying to create a duplicate which is not allowed.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sort out the parameters to your java call and it will work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 10:42:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240641#M193771</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-06-10T10:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript addNode but cannot addChild in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240642#M193772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you are right.&amp;nbsp; There were duplicates in the same space.&amp;nbsp; But they were duplicates in name only.&amp;nbsp; The nodes were located in different locations but they happened to have the same name.&amp;nbsp; It makes me wonder why Alfresco considers nodes with only the same name as duplicates even if their node references and locations are different.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 13:19:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-addnode-but-cannot-addchild-in-java/m-p/240642#M193772</guid>
      <dc:creator>esource</dc:creator>
      <dc:date>2010-06-10T13:19:45Z</dc:date>
    </item>
  </channel>
</rss>

