<?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: Controlling the namespace given to a copied node in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258241#M211371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script that navigates through folders using a lucene path query which requires that you specify the namespace of the folder. And now the script is breaking because it can't navigate through the folders because it expects the namespace to be my custom one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2011 20:06:29 GMT</pubDate>
    <dc:creator>dallinns</dc:creator>
    <dc:date>2011-11-03T20:06:29Z</dc:date>
    <item>
      <title>Controlling the namespace given to a copied node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258237#M211367</link>
      <description>I have a webscript that copies a node to another directory. It works fine other than it automatically assigns the default namespace when I want it to assign my own:{http://www.alfresco.org/model/content/1.0}Copy of dwell.odt‍But I really want it to say:{ls.model}Copy of dwell.odt‍like the parent nod</description>
      <pubDate>Wed, 02 Nov 2011 17:45:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258237#M211367</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2011-11-02T17:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the namespace given to a copied node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258238#M211368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What property are you using and how are you copying?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 17:54:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258238#M211368</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-11-02T17:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the namespace given to a copied node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258239#M211369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;destNode = search.findNode("workspace://SpacesStore/"+url.templateArgs.destNodeId);&lt;BR /&gt;&lt;BR /&gt;nodeToCopy = search.findNode("workspace://SpacesStore/"+url.templateArgs.nodeToCopyId);&lt;BR /&gt;&lt;BR /&gt;newNode = nodeToCopy.copy(destNode, true);&lt;BR /&gt;&lt;BR /&gt;nodeToCopy.save();&lt;BR /&gt;newNode.save();&lt;BR /&gt;&lt;BR /&gt;model.newNode = newNode;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the problem is that the path to the original node is something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}users/{ls.model}usr-028226182/{ls.model}dwell.odt" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}users/{ls.model}usr-028226182/{ls.model}dwell.odt&lt;/A&gt;&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;whereas the copy ends up like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}users/{ls.model}usr-028226182/{http://www.alfresco.org/model/content/1.0}Copy" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}users/{ls.model}usr-028226182/{http://www.alfresco.org/model/content/1.0}Copy&lt;/A&gt; of dwell.odt&lt;SPAN class="line-numbers-rows"&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, 02 Nov 2011 19:00:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258239#M211369</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2011-11-02T19:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the namespace given to a copied node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258240#M211370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So it is the node's primary assoc that you want to control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the Java Script API does not present options for setting the namespace, simplifying the API by assuming that you will use the bog standard cm namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Java API copy service will give you the extra control you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other ways would be to copy the node yourself or call the copy method and then move the node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Incidentally why do you need your own namespace for the primary assoc?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 23:54:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258240#M211370</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-11-02T23:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the namespace given to a copied node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258241#M211371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script that navigates through folders using a lucene path query which requires that you specify the namespace of the folder. And now the script is breaking because it can't navigate through the folders because it expects the namespace to be my custom one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 20:06:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/controlling-the-namespace-given-to-a-copied-node/m-p/258241#M211371</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2011-11-03T20:06:29Z</dc:date>
    </item>
  </channel>
</rss>

